1) How to clone a remote repo in a specific folder? a) Git clone -b <repo> <specific_folder_directory> b) Git init <repo> <specific_folder_directory> c) Git clone <repo> <specific_folder_directory> d) Git init -b <repo> <specific_folder_directoryGit clone -all e) git clone -b master -v <repo> f) git -branch master <repo> 2) How to fetch all the remote branches forcefully? a) Git fetch -p --all b) Git fetch -f --all c) Git fetch pull --all d) Git pull --all e) Git pull -f-p --all f) Git pull . 3) How to see all the tags in the repo? a) Git tag --all b) Git tag -f c) Git tag -a d) Git tag e) Git tag . f) Git tag -r 4) How to set the upstream branch of a local branch? a) Git --set-upstream-to=<upstream> b) Git branch --set-upstream <localbranch> c) Git branch -u -set-upstream <localbranch> d) Git --set-upstream origin <localbranch> e) Git branch --set-upstream-to=<upstream> f) Git branch --u-upstream <localbranch> 5) How to add a new remote repository? a) Git add remote <url> b) Git add remote <name> <url> c) Git add remote branch <url> d) Git add remote <name> e) Git -add -remote <name> f) Git add --remote <url> 6) Which command is used to show limited number of commits? a) Git status -n b) Git diff -n c) Git config -n d) Git status e) Git log -n f) Git config 7) Which git command displays the patch representing each commit? a) Git log -p b) Git branch c) Git log d) Git remote -v e) Git Patch f) Git Patch -p 8) How to undo the un-staged changes? a) Git rm <file> b) Git undo <file> c) Git restore <file> d) Git add <file> e) Git Unstage -p f) Git Stage -n 9) Identify the correct commit syntax for all changes with a message? a) Git add commit "message" b) Git commit -fm "message" c) Git message -am "message" d) Git commit -m "message" e) Git commit "message" f) Git commit -am "message" 10) Git command that helps us initialize git repo for a new project? a) Git init b) Git config c) Git clone d) Git new e) Git final f) Git startrepo 11) Which rebase option allows us merge the two commits and keep the commits messages. a) Reword b) Squash c) Fixup d) Merge e) rebase f) commit -u 12) What does git cherry-pick command does? a) Rewrites the history b) Rebase from another branch c) Checkout to a different branch d) Merges a single commit e) picks and load a commit f) picks cherries 13) Which git commands compares the two commits/branches/tags? a) Git diff b) Git log c) Git comp <commit1> <commit2> d) Git compare e) Git difftool f) Git compare -b <branch> -c<commit> -t<tag> 14) Which git command will create a branch and checkout the same? a) Git branch <branch> b) Git checkout <branch> c) Git checkout -b <branch> d) Git checkout branch <branch> e) Git create -b <branch> -c f) Git create -b <branch> -c checkout 15) Which git command will change the user's email? a) Git user --email <email> b) Git config --useremail <email> c) Git user-email <email> d) Git change email <email> e) Git config user.email <email> f) Git change -e <email>
0%
GIT Basics
共用
共用
共用
由
Naveen9
編輯內容
列印
嵌入
更多
作業
排行榜
顯示更多
顯示更少
此排行榜當前是私有的。單擊
共用
使其公開。
資源擁有者已禁用此排行榜。
此排行榜被禁用,因為您的選項與資源擁有者不同。
還原選項
迷宮追逐
是一個開放式範本。它不會為排行榜生成分數。
需要登錄
視覺風格
字體
需要訂閱
選項
切換範本
顯示所有
播放活動時將顯示更多格式。
打開結果
複製連結
QR 代碼
刪除
恢復自動保存:
?