change master to main git
$ git branch -m master main
or create a new one
$ git checkout -b main
$ git branch -m master main
# Step 1
# create main branch locally, taking the history from master
git branch -m master main
# Step 2
# push the new local main branch to the remote repo (GitHub)
git push -u origin main
# Step 3
# switch the current HEAD to the main branch
git symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/main
# Step 4
# change the default branch on GitHub to main
# https://docs.github.com/en/github/administering-a-repository/setting-the-default-branch
# Step 5
# delete the master branch on the remote
git push origin --delete master
Also in C++:
- git add command
- start django project
- laravel generate key
- how to drop db in mongo shell
- how to steal stolen deleted code... from github...
- where is fish shell installed ubuntu
- github get repo size
- share a given window on android
- rename all files starting with in linux
- download putty for ubuntu
- linux test examples
- versão do meu linux
- install serverless framework
- install flameshot ubuntu 20.04
- find .git repository file ubuntu copy
- virtualenvwrapper-win
- install react dependencies
- mv linux command
- react hooks npm install
- pull file from specific commit git
- how to install jupyter notebook using pip
- how to install anything on kali linux
- powershell add user to remote desktop group
- git remove repository local