Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
My gitconfig
[user]
name = Firstname Lastname
email = username@myEmail.com
[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))'
[core]
editor = vim
[push]
default = simple
Owner

Tiagojdferreira commented Apr 7, 2017 edited

New aliases:
cot - magical checkout that works with partial branch name
clean-merged - deletes branches that were merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment