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 코드
삭제
자동 저장된
게임을 복구할까요?