DEV Community

Discussion on: Git: Renaming the "master" branch

Collapse
 
ricokareem profile image
Rico Rodriquez Collins • Edited

When I renamed and pushed the branch main, I needed to manually set upstream so that I did not get "Branch 'main' set up to track remote branch 'master' from 'origin'." So I did it differently.

  1. Make sure master is up to date, then git checkout -b main
  2. git push -u origin main
  3. Log into github/bitbucket/etc and set the Default Branch to main
  4. git branch -d master
  5. git push origin :master

Also, anyone that truly does not believe "that terms such as master, slave, and blacklist are racially-charged or have undesirable connotations", please make sure to add such beliefs to your github profile. Thanks

Collapse
 
rexford_gibbs_08389875661 profile image
Rexford Gibbs

Also, too, anyone who (NOT anyone 'that') truly or otherwise does not realize "that terms such as master, slave, and blacklist" exist for more reasons than your simpleminded understanding can deal with - too bad.