Skip to content

Instantly share code, notes, and snippets.

@mguilhermetavares
Last active May 16, 2024 09:00
Show Gist options
  • Save mguilhermetavares/d71bf5e42b6ec224d609ed7f54530e2b to your computer and use it in GitHub Desktop.
Save mguilhermetavares/d71bf5e42b6ec224d609ed7f54530e2b to your computer and use it in GitHub Desktop.
[user]
name = Guido
email = mguilhermetavares@gmail.com
[alias]
last = log -1 HEAD --stat
cb = checkout -b
co = checkout
s = status -sb
l = log --pretty=format:'%C(blue)%h %C(red)%d %C(white) - %C(cyan)%cn, %C(green)%cr'
bclean = !git checkout main && git branch | grep -v '^*' | xargs git branch -D
lg = log --all --graph --decorate --oneline --abbrev-commit
branches = branch -a
wip = !git add -u && git commit -sm 'wip: :construction: Work in progress'
amend = commit --amend
prev = !git reset HEAD~1 --soft
edit = !git config --global --edit
sm = commit -sm
gl = config --global -l
update = !git fetch -p && git pull
[core]
editor = vim
[push]
default = current
followTags = true
[includeIf "gitdir:~/workspace/trout/"]
path = ~/workspace/trout/.gitconfig_trout
[pull]
rebase = true
[init]
defaultBranch = main
[commit]
gpgsign = true
[gpg]
program = /opt/homebrew/bin/gpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment