Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [alias]
- lol = log --graph --decorate --pretty=oneline --abbrev-commit
- lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
- lolat = log --graph --decorate --pretty=oneline --abbrev-commit --all --
- qlol = log HEAD~30..HEAD --decorate --pretty=oneline --abbrev-commit
- co = checkout
- br = branch
- st = status
- sh = show
- dif = diff
- lg = log --color --graph --date=short --date=short --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%ar, %ad) %C(bold blue)<%an, %aE> %C(black)<%cN, %cE>%Creset' --abbrev-commit --all -n 20
- lga = log --color --graph --date=short --date=short --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%ar, %ad) %C(bold blue)<%an, %aE> %C(black)<%cN, %cE>%Creset' --abbrev-commit --all
- lgl = log HEAD~20..HEAD --color --graph --date=short --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%ar, %ad) %C(bold blue)<%an, %aE> %C(black)<%cN, %cE>%Creset' --abbrev-commit
- lgln = log --color --graph --date=short --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%ar, %ad) %C(bold blue)<%an, %aE> %C(black)<%cN, %cE>%Creset' --abbrev-commit
- # Some tips from: http://blog.apiaxle.com/post/handy-git-tips-to-stop-you-getting-fired/
- # 'git assume myfile' to make sure a modified file is ignored and not accidentally checked in
- assume = update-index --assume-unchanged
- unassume = update-index --no-assume-unchanged
- assumed = "!git ls-files -v | grep ^h | cut -c 3-"
- # Create a pretty snapshot of working tree without removing changes from your tree
- snapshot = !git stash save "snapshot: $(date)" && git stash apply "stash@{0}"
- # Easier merging on conflicts -- 'ours' and 'theirs'
- ours = "!f() { git checkout --ours $@ && git add $@; }; f"
- theirs = "!f() { git checkout --theirs $@ && git add $@; }; f"
- # Gerrit stuff
- fetchGerritConfig = fetch origin refs/meta/config:refs/remotes/origin/meta/config
- [color]
- branch = auto
- diff = auto
- interactive = auto
- status = auto
- [user]
- email = EMAIL
- name = XYZ
- [core]
- excludesfile = ~/.gitignore_global
- # Diff-highlight readme: http://theunixtoolbox.com/git-diff-highlight/
- [pager]
- log = diff-highlight | less
- show = diff-highlight | less
- diff = diff-highlight | less
- [interactive]
- diffFilter = diff-highlight
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement