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 代码
删除
恢复自动保存:
?