Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Make sure EDITOR is set
- export EDITOR=vim
- mkdir diary
- cd diary
- git init
- # this installs shortcuts for creating a diary
- echo """
- [alias]
- full = log --date=local --pretty=format:\"[%h] %ad (%ar): %n%n%C(yellow)%w(80, 2, 2)%s%C(reset) %w(0, 2, 2)%n%b%n\"
- neat = log --date=local --pretty=format:\"%C(red)%ad%C(reset)%n%w(80, 2, 2)%C(yellow)%s%C(reset) %n%w(0, 2, 2)%b %n\"
- stream = log --date=local --pretty=format:\"%w(0, 2, 2)%n%<(18)%C(magenta)%ar%C(reset)%w(89, 0, 20)%C(bold yellow)%s%C(reset)%n%n%b%n\"
- new = commit --allow-empty
- quick = commit --allow-empty -m
- u = commit --allow-empty --amend
- de = reset HEAD~1
- """ >> .git/config
- # Now you can add a quick entry
- git quick "This is a short one line entry"
- # A longer one entry that opens in your $EDITOR
- git new
- # View your entries
- git stream
- git full
- git neat
- # To delete last entry
- git de
- # To edit last entry
- git u
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement