In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article is about how git implements modification, deletion, and renaming operations. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Git modify, delete, rename operations when the most basic operations, but also the most commonly used operations.
Modify the remote warehouse address git remote set-url origin [url] `* * Note: * * check whether your remote warehouse name is `origin delete remote, before you modify it. Local branch deletion local branch non-mandatory deletion (error will be reported if codes are not merged): git branch-d [branch name] forced deletion (ignore unmerged code): git branch-D [branch name] delete remote branch step 1: git branch-r View remote branch step 2: git branch-r-d origin/ [branch name] step 3: git push origin: [branch name] in one step: Git push origin-- delete [branch_name] or git push origin-d [branch_name] rename the local, Remote branch rename local branch current branch is the branch to be renamed: git branch-m new-name current branch is not the branch to be renamed: git branch-m old-name new-name rename remote branch git push origin: old-name new-name association new name local branch and remote branch git push origin-u new-name warehouse add user git config-- local-- add user.name your name view warehouse local, Global configuration information git config-- local-- List``git config-- global-- list description-d is the abbreviation of-- delete When deleting a branch using-- delete, the branch must be completely completed with its upstream branch merge (for more information on the upstream branch, you can click on the link), if there is no upstream branch, it must be completely merge with HEAD -D is the abbreviation of-- delete-- force, which deletes the branch without checking the merge status;-- force abbreviation-f, which resets the current branch to the original point (startpoint), and the git branch cannot modify an existing branch without using-force.
Thank you for reading! This is the end of this article on "how to modify, delete and rename git". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
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.