How to rename a branch in GitHub

How to rename a branch in GitHub

In this post we will give you information about How to rename a branch in GitHub. Hear we will give you detail about How to rename a branch in GitHubAnd how to use it also give you demo for it if it is necessary.

In the last tutorial, we have learned how to rename a local branch in git. we are going to learn how to rename a branch in GitHub.

Renaming Branch in GitHub

To rename a branch in GitHub first, we need to delete the remote branch by using the below command.

git push origin --delete work# work is my remote branch name

This above command will delete the work branch in GitHub.

Now we need to re-push the branch with the new name or a modified name.

git push origin new_name

Note: Replace the new_name with your branch name.

Hope this code and post will helped you for implement How to rename a branch in GitHub. if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve us. we will give you this type of more interesting post in featured also so, For more interesting post and code Keep reading our blogs

For More Info See :: laravel And github

We're accepting well-written guest posts and this is a great opportunity to collaborate : Contact US