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 |
What is the function of ‘git reset’?
What is git bisect? How can you use it to determine the source of a (regression) bug?
How do you configure a git repository to run code sanity checking tools right before making commits, and preventing them if the test fails?
What is the difference between ‘git remote’ and ‘git clone’?
Mention some of the best graphical GIT client for LINUX?
In git how do you revert a commit that has already been pushed and made public?
What does a commit object contain?
Why GIT better than Subversion?
What is the function of git clone?
Name a few git commands and explain their usage.
What is the function of ‘git stash apply’?
What is another option for merging in git?