Skip to content

Instantly share code, notes, and snippets.

@jlgerber
Last active December 21, 2016 08:03
Show Gist options
  • Save jlgerber/149c8817726dfbb69ed8 to your computer and use it in GitHub Desktop.
Save jlgerber/149c8817726dfbb69ed8 to your computer and use it in GitHub Desktop.
git commands
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