How to Rename a Git Branch
Git Rename Branch
To rename a Git branch, run the following command: git branch -m <old> <new>.This will change the name of the branch you are viewing to the new name you specify. The “old” is the name of the branch you want to rename and “new” is the new name for the branch.
$ git branch -m <old> <new>
Note : You don't need to specify the old branch name if you want to rename the current branch you are in.
after running the above command, your branch will look like shown below:
To Check all your branch List you created:
Thanks for reading...
Latest PostsHow to check or set username and email address in git using cmd How can I get a list of Git branches ordered by most recent commit ? How to checkout to previous working git branch How to Rename a Git Branch How to add SSH Key in Gitlab How to change remote git repository using command line How to get / List all remote branches present in Git repository using command line How to check current git repository name using command line How to clone a git repository using command line How to remove or delete branch from git repository using command line
© Copyright - 2018 - 2022 | All rights reserved at Funda of Web IT