diff --git a/README.md b/README.md index 47c329b..1df5d3e 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,7 @@ If you have any other questions not listed here, please raise a PR to have it ad - Q: How can I `add` only parts of a file I've changed? - Q: How can I __revert__ a commit? +It looks like ```git revert HEAD``` will undo the last commit but then commit the last changes as a new commit. The previous commits (both before and after the last commit) are still in the history. I think!!! - Q: I keep accidentally adding files I don't want to commit (e.g. compiled code, files with passwords etc.), how can I __ignore__ these files?