Skip to content

Instantly share code, notes, and snippets.

@crissilvaeng
Last active October 21, 2021 01:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crissilvaeng/2d05ed359debcc64671326ceebf3a162 to your computer and use it in GitHub Desktop.
Save crissilvaeng/2d05ed359debcc64671326ceebf3a162 to your computer and use it in GitHub Desktop.
Git Aliases
close = !sh -c 'git branch -d $1' -
local = rev-parse --abbrev-ref HEAD
swap = !sh -c 'git switch -c $1 --track origin/\"$(git local)\"' -
sync = pull --rebase --autostash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment