Skip to content

Instantly share code, notes, and snippets.

@leopd
Created June 30, 2020 21: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 leopd/110ce65937230dfc23179f6314551236 to your computer and use it in GitHub Desktop.
Save leopd/110ce65937230dfc23179f6314551236 to your computer and use it in GitHub Desktop.
How to make your source control a little less racist
#!/bin/bash
git checkout -b main
git branch --delete master
git push origin main
echo "Go to github, Settings, Branches, Default branch, main, update."
read -p "Press enter when done: " dontcare
git push origin --delete master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment