...
you can also create an alias for this:
Code Block |
---|
git config --global alias.gr 'log --graph --full-history --all --color
--pretty=tformat:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s%x20%x1b[33m(%an)%x1b[0m"' |
Run git config --global ... if you want this alias available in all of your repositories (instead of just the one you happen to be in currently). Now Remove the '–global' if you don't want this alias to be set globally, and only have it be available in one repository.
Now all you have to type is 'git gr'
2) Ignoring local changes to a tracked repository file
...