Skip to content

Instantly share code, notes, and snippets.

@vinifig
Last active December 8, 2022 00:02
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
[push]
default = current
[init]
defaultBranch = main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment