Frequently asked questions around Git and Version Control.
How to Undo git add
Git does not automatically include changes in a commit: they have to be explicitly added to the next commit, with the git add command.
But sometimes you might change your mind and decide that a certain file should not be part of the next commit. In this short article, we'll answer the question of how to undo adding a change to the staging area, after having used git add before.
The Git Cheat Sheet
No need to remember all those commands and parameters: get our popular "Git Cheat Sheet" - for free!