Created
June 12, 2020 19:52
-
-
Save swenson/ee0bd9287d96dd9e70a55b8554c0614b to your computer and use it in GitHub Desktop.
Setup git fanfic aliases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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