Skip to content

Instantly share code, notes, and snippets.

@romanmt
Created August 31, 2011 15:00
Show Gist options
  • Select an option

  • Save romanmt/1183759 to your computer and use it in GitHub Desktop.

Select an option

Save romanmt/1183759 to your computer and use it in GitHub Desktop.
git configuration
[user]
name = romanmt
email = romanmt@gmail.com
[alias]
a = add
aa = !git add -A . && git status
b = branch -a --color
c = commit -m
ca = commit --amend -C HEAD
co = checkout
cob = checkout -b
datetag = !git tag `date "+%Y%m%d%H%M"`
done = !git fetch && git rebase origin/master && git checkout master && git merge @{-1} && git push
ir = !git rebase -i origin/master
lf = !sh -c 'git lg --grep=$1 --max-count=5' -
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
next = "!git add . && git rebase --continue"
rmb = !sh -c 'git branch -D $1 && git push origin :$1' -
st = status
today = log --stat --since='1 Day Ago' --graph --pretty=oneline --abbrev-commit --date=relative
unadd = reset HEAD
up = !git fetch origin && git rebase origin/master
who = shortlog -n -s --no-merges
[core]
editor = mvim
[branch "master"]
remote = origin
merge = refs/heads/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment