Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!!!
Copy link
Member

@kinbiko kinbiko Jan 31, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

correct! How would you revert a specific commit? Hint: HEAD is another word for the most recent commit, and the answer contains a hash ;)


- 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?

Expand Down