Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

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

Shulou Source: shulou.com Published: 2022-06-03 05:11:26 10月01日 Update

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

Tags: Commands branches versions synchronization code web pages things two functions can be passed through address directory system but mail first-come prompt generation warehouse application Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info MariaDB NVidia macOS Shulou Information