In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the git branch how to change the name of the relevant knowledge, the content is detailed and easy to understand, the operation is simple and fast, has a certain reference value, I believe you will gain after reading this git branch how to change the name of the article, let's take a look at it.
Method: 1, use branch operation to modify the local branch name, syntax is "git branch-m old name new name"; 2, delete the remote branch and use the "git push origin new name" command to modify the remote branch name.
This article operating environment: Windows10 system, Git2.30.0 version, Dell G3 computer.
How to change the name of git Branch
Suppose the branch name is oldName
Want to change it to newName
1. Local branch rename (not yet pushed to remote)
Git branch-m oldName newName
two。 Remote branch rename (remote has been pushed-assuming the local branch and the remote corresponding branch name are the same)
a. Rename the local branch corresponding to the remote branch
Git branch-m oldName newName
b. Delete remote branch
Git push-delete origin oldName
c. Upload a newly named local branch
Git push origin newName
d. Associate the modified local branch with the remote branch
This is the end of git branch-set-upstream-to origin/newName 's article on "how to change the name of git Branch". Thank you for reading! I believe you all have a certain understanding of the knowledge of "how to change the name of the git branch". If you want to learn more, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.