added some functions for git
This commit is contained in:
parent
9b9d24da19
commit
458da61bc9
1 changed files with 2 additions and 0 deletions
|
@ -22,6 +22,8 @@
|
|||
purge-last-commit = reset --hard HEAD~1
|
||||
pushdetachedhead = push origin HEAD:master
|
||||
getbranchauthor = "!f() { git for-each-ref --format='%(committerdate) %09 %(authorname) %09 %(refname)' | sort -k5n -k2M -k3n -k4n; }; f"
|
||||
grepp = grep --break --heading --line-number
|
||||
grephist = "!f() { regex=$1; git grep --break --heading --line-number -e $regex $(git rev-list --all); }; f"
|
||||
[merge]
|
||||
conflictstyle = diff3
|
||||
tool = vimdiff
|
||||
|
|
Loading…
Reference in a new issue