Last active
August 29, 2015 14:08
-
-
Save tokhi/f3181fe18c75a6d9a1b4 to your computer and use it in GitHub Desktop.
git fanky commands
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
# http://git-scm.com/book/en/v2/Git-Basics-Viewing-the-Commit-History | |
# compare old commits with the new commit file changed | |
$ git log -p -2 | |
# which files changed on a specific commit revision | |
$ git log --stat | |
# print each commit with a signle line and commit revision | |
git log --pretty=oneline | |
# speicify your own log format | |
git log --pretty=format:"%h - %an, %ar : %s" | |
# list of commits made in the last two weeks | |
git log --since=2.weeks | |
# creating a tag - a tag point to a specific commit ( can be used for releases) | |
git tag -a v1.4 -m 'my version 1.4' | |
# to show tags | |
git tag |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment