Skip to content

Instantly share code, notes, and snippets.

@vinifig
Last active August 8, 2025 15:27
Show Gist options
  • Save vinifig/2dd8468b6049e33884b647e1a0f6db78 to your computer and use it in GitHub Desktop.
Save vinifig/2dd8468b6049e33884b647e1a0f6db78 to your computer and use it in GitHub Desktop.
my git config template
[user]
name = <user>
email = <mail>
[alias]
co=checkout
st=status
up = !git fetch origin && git pull --rebase origin main
upto = !git fetch origin && git pull --rebase origin
sup = !git branch --set-upstream-to=origin/`git symbolic-ref --short HEAD`
ammend = !git add -A & git commit --ammend --no-edit
lg = "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"
[push]
default = current
[init]
defaultBranch = main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment