Skip to content

Instantly share code, notes, and snippets.

@swenson
Created June 12, 2020 19:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save swenson/ee0bd9287d96dd9e70a55b8554c0614b to your computer and use it in GitHub Desktop.
Save swenson/ee0bd9287d96dd9e70a55b8554c0614b to your computer and use it in GitHub Desktop.
Setup git fanfic aliases
#!/bin/sh
# thanks hanselman https://www.hanselman.com/blog/EasilyRenameYourGitDefaultBranchFromMasterToMain.aspx
git config --global alias.new '!git init && git symbolic-ref HEAD refs/heads/canon'
# https://twitter.com/tesseralis/status/1271197776886370305
git config --global alias.retcon 'rebase'
git config --global alias.op 'blame'
git config --global alias.clip-show 'log'
git config --global alias.fanfic 'branch'
git config --global alias.yeet 'push'
git config --global alias.yeet-retcon 'push --force'
git config --global alias.yoink 'pull --rebase'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment