Skip to content

Instantly share code, notes, and snippets.

@emaleavil
Created November 8, 2018 07:59
Show Gist options
  • Select an option

  • Save emaleavil/8b9d86b32276f42f6b1e20ab0231c935 to your computer and use it in GitHub Desktop.

Select an option

Save emaleavil/8b9d86b32276f42f6b1e20ab0231c935 to your computer and use it in GitHub Desktop.
Alias configuration file.
ec = config --global -e
co = checkout
cob = checkout -b
cfgl = config --global --list
amend = commit -a --amend
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
fl = log -u
cp = cherry-pick
st = status -s
pc = diff --stat --cached
cl = clone
ci = commit
cim = commit -m
hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
fall = fetch --all
rmf = reset HEAD^ $FILE
#Usage : git retag <remote> <tagname>
retag = "!f() {\
git push $1 :refs/tags/$2; \
git tag -fa $2 \
git push $1 master --tags \
}; f"
#Usage : git retag <tagname>
retagOrigin = "!f() {\
git push origin :refs/tags/$1; \
git tag -fa $1 \
git push origin master --tags \
}; f"
#Usage: git ra <remote_name> <remote_url>
ra = "!f() { \
git remote add $1 $2; \
}; f"
alias = config --get-regexp ^alias\\.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment