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
Delen
Delen
Delen
door
Naveen9
Inhoud Bewerken
Afdrukken
Embedden
Meer
Toewijzingen
Scorebord
Meer weergeven
Minder weergeven
Dit scoreboard is momenteel privé. Klik op
Delen
om het publiek te maken.
Dit scoreboard is uitgeschakeld door de eigenaar.
Dit scoreboard is uitgeschakeld omdat uw opties anders zijn dan die van de eigenaar.
Opties Herstellen
Labyrint
is een open template. Het genereert geen scores voor een scoreboard.
Inloggen vereist
Visuele stijl
Lettertypen
Abonnement vereist
Opties
Template wisselen
Alles weergeven
Er zullen meer templates verschijnen terwijl je de activiteit gebruikt.
Open resultaten
Kopieer link
QR-code
Verwijderen
Automatisch opgeslagen activiteit "
" herstellen?