Created
September 4, 2013 04:43
-
-
Save matijs/6432834 to your computer and use it in GitHub Desktop.
git snippets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# list deleted files | |
git log --diff-filter=D --summary | |
# find last commit that affected a file | |
git rev-list -n 1 HEAD -- path/to/filename | |
# restore one specific deleted file | |
git checkout $hash~1 path/to/filename | |
# clone including submodules | |
git clone --recursive git://url.to/foo.git |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://stackoverflow.com/questions/953481/restore-a-deleted-file-in-a-git-repo
http://stackoverflow.com/questions/3796927/how-to-git-clone-including-submodules