Skip to content

Instantly share code, notes, and snippets.

@gerjunior
Last active April 13, 2021 14:13
Show Gist options
  • Save gerjunior/84eb6603fcd1d542c628bd7c694d7dab to your computer and use it in GitHub Desktop.
Save gerjunior/84eb6603fcd1d542c628bd7c694d7dab to your computer and use it in GitHub Desktop.
My git global configuration
[user]
name = Geraldo Júnior
email = geraldojuni@hotmail.com
username = gerjunior
signingkey = ${GITHUB_SSH_SIGNING_KEY}
[credential]
helper = store
[hub]
protocol = https
[core]
excludesFile = ~/.gitignore
editor = code --wait
[alias]
cmtd = "!f() { git commit -m \"$@\" && git push origin HEAD; }; f"
cm = commit -m
comoji = "!f() { gitmoji -c; }; f"
acd = "!commitAdd() { git add .; gitmoji -c; }; commitAdd && git deploy"
cl = !git clone https://github.com/$1
deploy = push origin HEAD
lg = log --all --graph --decorate --oneline --abbrev-commit
pull = pull origin HEAD
st = status
co = checkout
del = branch -D
[commit]
gpgsign = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment