Skip to content

Instantly share code, notes, and snippets.

@timoteialbu
Last active July 9, 2019 16:59
Show Gist options
  • Save timoteialbu/39f17661e2c54c367b65262298081059 to your computer and use it in GitHub Desktop.
Save timoteialbu/39f17661e2c54c367b65262298081059 to your computer and use it in GitHub Desktop.
The git aliases up to the line break I use daily
# This is Git's per-user configuration file.
[user]
# Please adapt and uncomment the following lines:
name = Timotei Albu
email = timotei.albu@gmail.com
[credential]
helper = !aws --profile codecommit credential-helper $@
UseHttpPath = true
[commit]
gpgsign = true
[gpg]
program = gpg
[alias]
a = config --get-regexp alias
br = branch
cax = commit --amend --no-edit
cap = commit --amend --no-edit && git push -f
co = checkout
cob = checkout -b
com = checkout master
dc = reset --hard HEAD^
pb = push -u origin $(git branch-name)
pf = push -f
st = status
uc = reset --soft HEAD^
branch-name = rev-parse --abbrev-ref HEAD
ca = commit --amend
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --decorate --date=short
lines= diff master --shortstat
lg = log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
lp = log -1 HEAD
ra = rebase add .
rab = rebase --abort
rc = rebase --continue
rh = reset --hard
[core]
excludesfile = /Users/timotei/.gitignore_global
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment