Last active
May 23, 2017 17:28
-
-
Save dmulvi/2baffcc2f58b4c058ac8e043343e1a07 to your computer and use it in GitHub Desktop.
Git Commands
This file contains hidden or 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
# compare two branches (master and temp) | |
git log --graph --decorate --pretty=oneline --abbrev-commit master origin/master temp | |
# pull an old file and overwrite current | |
git checkout 'master@{7 days ago}' -- path/to/file.txt | |
# log changes before a date | |
git log --stat --before="2017-05-09" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment