A Simple Way to Rename Local and Remote Git Branch
Git allows us to rename the git branch locally and under the remote. Renaming a local Git branch is just a matter of running a single “git branch -m” command. You can’t directly rename a remote branch as you need to push the renamed local branch to the remote repository and then delete the old branch from there. If your local branch is already pushed to a remote repository then this command will help you to rename it. If you want to check the changes then you can log in to your GitHub or GitLab portal and see the changes there.
Tags
A Simple Way to Rename Local and Remote Git Branch
Source: Super Trending News PH
Post a Comment
0 Comments