Skip to content

Instantly share code, notes, and snippets.

View lisasy's full-sized avatar

Lisa Sy lisasy

View GitHub Profile
#!/bin/bash
# Checkout master branch
git checkout master
# Rename "master" to "main"
git branch -m master main
# Unset the current upstream branch
git branch --unset-upstream