Browse files

Updated git and shell guides

  • Loading branch information...
ndarville committed Sep 20, 2013
1 parent 05fa4ae commit cb01e4fdad983c1ea60aa163e06b421cbf790c83
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,29 @@
Shell Scripts
Better Shell Environment
Try Paul Irish’s [forked dotfiles]( for an improved and prettier working environment, especially with regards to Git.
Prettier Git Logs
### With Graph
`git log --graph --oneline --all --decorate`
### Filipe Kiss’s Git Log
From [here](
1. The script:
* `git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit`
2. Save it as a shortcut `git lg`:
* `git config --global alias.lg "log --graph (... and the rest of the code above)`
3. Show changed lines in output:
* `git lg -p`
### Others
There are many other interesting ones out there, but some of them are more laborious to implement, as they require defined `config` settings:

0 comments on commit cb01e4f

Please sign in to comment.