In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article will explain in detail how to use git to update the package. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
Packaging principle:
Using git archive to output the changes between two submissions
NEW_COMMIT_ID_HERE newer submission ID
OLD_COMMIT_ID_HERE 's older submission ID (as a starting point for update packaging)
Now I have two submissions (commit)
The ID submitted for the first time is 438eac0, and a file is submitted
The ID submitted for the second time is 4d5baf6, with three files submitted
Then follow the packaging instructions above:
Git archive-o update.zip 4d5baf6 $(git diff-name-only 438eac0 4d5baf6)
If you execute the instruction, you will find that there is an extra update.zip file in the directory.
The editor decompresses the file to see what it contains.
It is the second file and directory submitted by the editor, which shows that OLD_COMMIT_ID_HERE is only the starting point for packaging, but does not contain the content submitted by OLD_COMMIT_ID_HERE.
Of course, multiple COMMIT can be separated between NEW_COMMIT_ID_HERE and OLD_COMMIT_ID_HERE, so that the content of multiple COMMIT will be packaged into a compressed package.
Finally, as long as the extracted content is uploaded to the server through the FTP tool.
This is the end of the article on "how to use git to make an update package". 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, please 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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.