Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Application of git under windows (2)-remote Warehouse Code Management

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

Clone a remote git directory

Https://github.com/pcdogyu/git4windows.git

It was cloned.

Generate 1.txt

Scan stage signoff commit

2 submission records

Push to remote address

Finished.

I received a prompt email before I could go to the web page.

The web page view 1.txt has been submitted.

For synchronizing changes on the remote version library locally, Git provides two commands, fetch and pull, to accomplish this function. Let's start with fetch:

Git fetch https://github.com/pcdogyu/git4windows.git master

After executing this command, the code on the remote version library will be synchronized locally, but the synchronized code will not be merged into any branch, but will be stored on an origin/master branch. We can use the diff command to see what has been modified on the remote version library:

Git diff https://github.com/pcdogyu/git4windows.git/master

Then call the merge command to merge the changes on the origin/master branch into the main branch:

Git merge https://github.com/pcdogyu/git4windows.git/master 、

On the other hand, the pull command is equivalent to the execution of fetch and merge commands together.

Git pull https://github.com/pcdogyu/git4windows.git master

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.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report