Last active
July 6, 2021 10:59
-
-
Save tiagojdf/115ecac229e176e48d520c59b022e4fb to your computer and use it in GitHub Desktop.
My gitconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = Firstname Lastname | |
email = [email protected] | |
[alias] | |
co = checkout | |
cot = "!f() { git branch | grep $1 | xargs -I {} git co {}; }; f" | |
b = branch | |
pu = push -u origin HEAD | |
ci = commit | |
st = status | |
ap = add --patch | |
rename = branch -m | |
rn = rename | |
clean-merged = ! git branch --merged | egrep -v \"(^\\*|master|dev)\" | xargs git branch -d | |
age = for-each-ref --sort=committerdate refs/heads/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))' | |
rc = rebase --continue | |
rs = rebase --skip | |
cc = cherry-pick --continue | |
cs = cherry-pick --skip | |
[core] | |
editor = vim | |
[push] | |
default = simple |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
New aliases:
cot
- magical checkout that works with partial branch nameclean-merged
- deletes branches that were merged