Created
December 12, 2012 00:54
-
-
Save lukasz-kaniowski/4263871 to your computer and use it in GitHub Desktop.
Git aliasses and ignores
This file contains hidden or 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
[color] | |
ui = auto | |
[alias] | |
co = checkout | |
br = branch | |
ci = commit | |
st = status | |
track = !sh -c 'git checkout --track -b $1 origin/$1' - | |
f = fetch | |
fstart = !sh -c 'git push origin devel:refs/heads/features/$1 && git checkout --track -b features/$1 origin/features/$1' - | |
sbr = !sh -c 'git push origin devel:refs/heads/$1 && git checkout --track -b $1 origin/$1' - | |
sbrm = !sh -c 'git push origin master:refs/heads/$1 && git checkout --track -b $1 origin/$1' - | |
rmb = !sh -c 'git branch -D $1 && git push origin :$1' - | |
who = shortlog -n -s --no-merges | |
df = diff | |
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative | |
#lg = log -p | |
lol = log --graph --decorate --pretty=oneline --abbrev-commit | |
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all | |
ls = ls-files | |
cherry-pick = cherry-pick -x | |
headless = !sh -c 'git symbolic-ref HEAD refs/heads/$0 && rm .git/index && git clean -fdx' | |
r = reset --hard HEAD | |
cm = commit -m | |
cam = commit -am | |
a = add |
This file contains hidden or 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
*~ | |
.DS_Store | |
*.swp | |
# intellij idea | |
*.iml | |
*.ipr | |
*.iws | |
.idea/ | |
#osx | |
.DS_Store | |
# Thumbnails | |
._* | |
# Files that might appear on external disk | |
.Spotlight-V100 | |
.Trashes | |
#vim | |
.*.sw[a-z] | |
*.un~ | |
Session.vim |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment