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 |
What does a commit object contain?
What is the purpose of branching and how many branching strategies can you apply?
What is Subgit? Why to use Subgit?
What is ‘head’ in git?
What is git fork?
What is a git commit and what does the commit object contain?
How do you find a list of files that have changed in a particular commit?
What work is restored when the deleted branch is recovered?
What is subgit and why is it used?
What is a commit message?
What is rebasing syntax in git?
What is git bisect? How can you use it to determine the source of a (regression) bug?