0% found this document useful (0 votes)
6 views3 pages

Git Commands for Branch Management

The document contains a series of questions and answers related to Git, a version control system. It covers commands for version checking, repository initialization, committing changes, branch management, and remote operations. Additionally, it clarifies misconceptions about Git and GitHub, as well as the nature of commit history.

Uploaded by

ganesh7pawar
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views3 pages

Git Commands for Branch Management

The document contains a series of questions and answers related to Git, a version control system. It covers commands for version checking, repository initialization, committing changes, branch management, and remote operations. Additionally, it clarifies misconceptions about Git and GitHub, as well as the nature of commit history.

Uploaded by

ganesh7pawar
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd

Q. No.

Question
1 What is Git?
2 Git is the same as GitHub.
3 What is the command to get the installed version of Git?
4 What is the command to initialize Git on the current repository?
5 Git automatically adds new files to the repository and starts tracking them.
6 Git commit history is automatically deleted:
7 What is the command to commit the staged changes for the Git repository?
8 What is the command to view the history of commits for the repository?
9 In Git, a branch is:
10 What is the command to move to the branch named "new-email"?
11 What is the command to merge the current branch with the branch "new-email"?
12 What is the command to delete the branch "new-email"
13 What is the command to push the current repository to the remote origin?
14 What is command to show differences between the current branch & a branch "n
15 Git Pull is a combination of:
A B C
Remote Repository System Programming Language Nickname for GitHub
1 FALSE
git --version git help version gitVersion
git start start git initialize get
1 FALSE
commit history is never deleted. Every year Every 2 week
commit save snapshot
git log git commits git --full-log
Secret part of config Nonsense word a wooden stick to type commands
git checkout new-email git checkout branch new-mail git branch -move new-email
git add new-email git commit -merge new-email git merge new-email
git branch -d new-email git delete new-email git delete branch new-email
git merge remote git remote push git push origin
git changes new-email git status new-email git diff new-email
fetch and merge add and commit branch and checkout
D Answer Points
Version Control System D 1
B 1
getGitVersion A 1
git init D 2
B 1
Every month A 1
com A 2
git history A 1
separate version of main repos D 1
git branch new-email A 2
C 1
git gone new-email A 2
git remote commit C 1
git log new-email C 2
A 1

You might also like