In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
In this issue, the editor will bring you what is the sub-module of Git. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.
Premise: the parent project and the child project are independent projects, and the child project is introduced in the git way in the parent project.
1. Start from scratch and initialize the subproject
> take a look at the parent project:
> take a look at the first subproject:
> take a look at the second subproject:
First, clone the parent project: git clone git@gitee.com:blueses/parent.git, then go to the root directory of the parent project, and add the first child project: git submodule add git@gitee.com:blueses/son-a.git add the second child project: git submodule add git@gitee.com:blueses/son-b.git initializes the git submodule init to see the file status in the parent project:
Add two subproject directory folders and a .gitmodule file, then directly submit all git commit-m "add all modules" push git push update git submodule udpate-- remote update only one git submodule udpate-- remote son-a go to the web page to view the parent project
You can see that the directory of each subproject is followed by an @ start address corresponding to the submission id when the subproject is added. Click to view the contents of the file at that time and directly click the subproject folder on the web page. You can directly enter the subproject 2. Join halfway to first clone the parent project git clone git@gitee.com:blueses/parent.git to enter the directory, and find that the subproject folder is empty. Initialize the git submodule init update. Can be updated to the file, but the file version is the page @ version of git submodule update to pull the latest content of all sub-projects: git submodule update-remote only update a git submodule udpate-remote son-a submitted git commit-am "update all" git push above is what the Git sub-module that Xiaobian shares for you, if you happen to have similar doubts, please refer to the above analysis for understanding. If you want to know more about it, 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.