Skip to content

Instantly share code, notes, and snippets.

View CekanLucas's full-sized avatar
🎯
Focusing

Lucas Cekan CekanLucas

🎯
Focusing
View GitHub Profile
@CekanLucas
CekanLucas / change_github_master_branch_name.sh
Created June 28, 2022 20:38 — forked from DevoKun/change_github_master_branch_name.sh
Change GitHub Master branch name to Main
git pull # Pull first or lose ANY commits upstream
git branch -m master main # Rename branch locally
echo
echo "Change GitHub default branch to 'main'."
echo
echo "Is GitHub Default Branch 'main'?"
echo
read -p "Press ENTER to continue"
echo
<!DOCTYPE HTML>
<html>
<head>
<style>
body {
margin: 0px;
padding: 0px;
}
</style>
</head>