Skip to content

Instantly share code, notes, and snippets.

@Razoxane
Last active March 14, 2017 07:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Razoxane/491eaf7bc5a28fe0c4926575c8a8f17f to your computer and use it in GitHub Desktop.
Save Razoxane/491eaf7bc5a28fe0c4926575c8a8f17f to your computer and use it in GitHub Desktop.
Git Config - Jade
[core]
editor = nano
[interactive]
singleKey = true
[push]
default = simple
[color]
ui = true
[alias]
#### Generic ####
a = !git add . && git status
aa = !git add . && git add -u . && git status
ac = !git add . && git commit
acm = !git add . && git commit -m
au = !git add -u . && git status
c = commit
ca = commit --amend # careful
cm = commit -m
count = "!f() { compareBranch=${1-master}; git rev-list --count HEAD ^$compareBranch; }; f"
d = diff --color-words
dh = diff --color-words head
gr = grep -Ii
ll = log --pretty=format:\"%C(yellow)%h%Cred%d\\\\ %Creset%s%Cblue\\\\ [%cn]\" --decorate --numstat
ls = log --pretty=format:\"%C(yellow)%h%Cred%d\\\\ %Creset%s%Cblue\\\\ [%cn]\" --decorate
rmdel = !git rm $(git ls-files --deleted)
s = status
#### Git Flow ####
fff = "!f() { git flow feature finish issue_$1; }; f"
ffp = "!f() { git flow feature publish issue_$1; }; f"
ffs = "!f() { git flow feature start issue_$1; }; f"
fft = "!f() { git flow feature track issue_$1; }; f"
fhf = "!f() { git flow hotfix finish issue_$1; }; f"
fhs = "!f() { git flow hotfix start issue_$1; }; f"
pof = "!f() { git push origin feature/issue_$1; }; f"
poh = "!f() { git push origin hotfix/issue_$1; }; f"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment