What is the function of ‘git reset’?
Answer / Tuba Shakeel
'git reset' allows you to undo changes in your working directory, staging area, or commit history. It can be used to move the pointer to a different commit, discard changes since that commit, or even remove commits from the repository (with `--hard` option).
| Is This Answer Correct ? | 0 Yes | 0 No |
How can conflict in git resolved?
What is the difference between git vs svn
What does ‘hooks’ comprise of in git?
In git how do you revert a commit that has already been pushed and made public?
Why is it advisable to create an additional commit rather than amending an existing commit?
What is a repository and how will you create it?
What is the function of ‘GIT PUSH’ in GIT?
What is the purpose of branching in GIT?
What is a commit message?
What are the different ways you can refer to a commit?
What commands will you use to bring a new feature to the main branch?
Explain the difference between rebase and merge?