Last active
December 21, 2016 08:03
-
-
Save jlgerber/149c8817726dfbb69ed8 to your computer and use it in GitHub Desktop.
git 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
git log --oneline --graph --all --decorate # print the log, one line per commit, show a graph, for all branches, and decorate with the name of the branch | |
You can go ahead and create an alias for this or any command | |
git config --global alias.logv 'log --oneline --graph --all --decorate' | |
This is stored in ~/.gitconfig under [alias] | |
-------------- | |
If you want the status of your local repo to be reflected in your prompt, you can make use of the following project: | |
https://github.com/djl/vcprompt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment