In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "how to migrate git code quickly". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's ideas to study and learn "how to migrate git code quickly".
Background Today's work came across a requirement that a project in groupA in git needs to be migrated to groupB. The usual trouble point is to build a new project in groupB and copy all the code over, but in this case, all branches and history will be lost. Based on this, is there a good way to migrate a project completely through command line operation? After querying some information on the Internet, I found such a way to do a record migration step here.
Step 1: clone the old project to a local directory
Git clone-bare git@git.xxx.com:groupA/old_project.git
Step 2: enter the directory
➜~ cd old_project.git➜ old_project.git git: (master)
Step 3: create a new project in groupB: new_project
Git push-mirror git@git.xxx.com:groupB/new_project.git
Based on this, the project has completely migrated from groupA to groupB. Step 4: delete the old version and re-clone the new version.
Thank you for reading, the above is the content of "how to quickly migrate git code". After the study of this article, I believe you have a deeper understanding of how to quickly migrate git code, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.