Skip to content

Instantly share code, notes, and snippets.

@thislooksfun
Created March 16, 2021 16:34
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 thislooksfun/393852c3e31df218742031a5695a5cde to your computer and use it in GitHub Desktop.
Save thislooksfun/393852c3e31df218742031a5695a5cde to your computer and use it in GitHub Desktop.
My Git Aliases
[alias]
aliases = "!echo \"Use 'git la' to list aliases\""
a = add
aa = "!git add -A && git st"
b = branch
bd = branch -d
bl = branch --list
co = checkout
cod = checkout develop
cos = checkout staging
com = checkout master
cor = checkout release
cmm = commit -m
cma = commit --amend
cmam = commit --amend -m
cmas = commit --amend --no-edit
cmf = commit --no-verify -m "fixup"
dc = diff --cached
dw = diff --word-diff
dwc = diff --word-diff --cached
ff = flow feature
ffs = flow feature start
ffp = flow feature publish
fff = flow feature finish
fh = flow hotfix
fhs = flow hotfix start
fhp = flow hotfix publish
fhf = flow hotfix finish
fr = flow release
frs = flow release start
frp = flow release publish
frf = flow release finish
la = "!git config -l | grep alias | cut -c 7-"
lc = config -l
ls = log --pretty=format:"%C(yellow)%h\\ %Creset%s%C(cyan)\\ [%cn]%C(auto)%d%Creset" --decorate
p = push
pat = "!git push --all && git push --tags"
rsh = reset HEAD
st = status -s
sta = status
up = pull --rebase --prune
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment