What is the function of ‘git checkout’ in git?
Answer / Anant Prasad Vema
'Git checkout' allows you to switch branches, move between different versions of a file (with -b for creating a new branch), or recover a previous commit (using the commit hash). It also creates or updates the working directory and staging area to match the state of the selected branch or commit.
| Is This Answer Correct ? | 0 Yes | 0 No |
How will you know in git if a branch has already been merged into master?
What is the difference between git pull and git fetch?
What is Subgit? Why to use Subgit?
What is ‘head’ in git and how many heads can be created in a repository?
Name some git commands and also explain their functions?
How to squash or fixup commits?
What is the purpose of branching in GIT?
What commands will you use to bring a new feature to the main branch?
What is the function of ‘GIT PUSH’ in GIT?
Why is it desirable to create an additional commit rather than amending an existing commit?
What is git and why do we use it?
What is git fork? How to create tag?