git branch -m master main
You will need to change the remote repo as well but it is not as simple. You need to create a new main branch from the master branch and, when that is confirmed working, then delete the master branch.
git push -u origin main
git push origin --delete master
Check git tower for more details.
git remote // origin (this could be anything - may see upstream or other)
git remote -v // wherever you grabbed your clone from
git remote set-url // needs two things: 1.) name (leave as origin) and 2.) updated url
The .git folder is hidden and to see hidden folders in the windows command line:
If you try and delete a non-empty directory you will get a “not an empty directory” message so use:
rmdir .git /s
Note: the s in /s is not case sensitive
Another note: I love the “gittower.com” ui.
git remote add origin yourRemoteURLHere.git
Note: origin can be named anything, it doesn’t have to be origin although that is the convention
git commit --amend -m"New Commit Message for Most Recent Commit Here"