![]() If this was useful, you can buy me a coffee here. git push -set-upstream origin newbranch Push the new branch, set local branch to track the new remote. git push origin :oldbranch Delete the old branch. 5min Read Git Rename Branch Learn How to Rename a Local and Remote Git Branch Git is a Version Control System (VCS) used by developers to facilitate collaboration. Thanks Scott Hanselman for the instructions, you can read the full article here: Easily rename your Git default branch from master to main GitHub now allows you to rename any branch, including the default branch, from the web. git branch -m oldbranch newbranch Rename branch locally.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |