Skip to content

Instantly share code, notes, and snippets.

@dkuku
Forked from tiagojdf/.gitconfig
Created May 2, 2018 14:35
Show Gist options
  • Save dkuku/cf9189c4962495cfcafde0a051765309 to your computer and use it in GitHub Desktop.
Save dkuku/cf9189c4962495cfcafde0a051765309 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment