How can I rename a local branch which has not yet been pushed to a remote repository?
Related:
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To rename the current branch:
To rename a branch while pointed to any branch:
-mis short for--move.To push the local branch and reset the upstream branch:
To delete the remote branch:
To create a
git renamealias:On Windows or another case-insensitive filesystem, use
-Mif there are only capitalization changes in the name. Otherwise, Git will throw a "branch already exists" error.