I'll collect some random git tips here, in case I forget how to do something.
- Revert a file in your working copy to what it is on the current branch; undo changes for this file:
git checkout filename
(Git checkout is also used to switch branches; if there is a branch with the same name as filename, you must use git checkout -- filename
)
--
JasonDhiaMansour - 2015-11-17