Application of git under windows (2)-remote Warehouse Code Management
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