10 Mar 2021 10 Mar '21
10.03.21 16:06, Pablo Galindo Salgado пише:
# What you need to do?
You just need to update your local clone after the branch name changes. From the local clone of the repository on a computer, run the following commands to update the name of the default branch.
$ git branch -m master main $ git fetch origin $ git branch -u origin/main main
Apart from that, you should update any local script or command that uses the name "master" to use the name "main".
I have above 200 feature branches in my local repository. Will renaming the master branch cause any problems?