Application of Git in Windows (ii)-Remote warehouse code management

Source: Internet
Author: User
Tags diff
Cloning a remote git directory

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

Cloning down.

Generate 1.txt

Scan Stage Signoff Commit

2 Commit Records

Push to remote Address

Completed the

Before you can go to the webpage, you receive the system prompt Mail

Page view 1.txt has been submitted.

For synchronizing changes on the remote repository to local, GIT provides 2 commands to complete this function, fetch and pull, respectively. First of all, say fetch:

git fetch https://github.com/pcdogyu/git4windows.git Master

After executing this command, the code on the remote repository will be synced locally, but the synced code will not be merged into any branch, but will be stored on a origin/master branch where we can use the diff command to see exactly what was modified on the remote repository:

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

The merge command is then called to merge the modifications on the Origin/master branch onto the main branch:

git merge Https://github.com/pcdogyu/git4windows.git/master,

The pull command is equivalent to putting the fetch and merge two commands together to execute the

Git pull Https://github.com/pcdogyu/git4windows.git Master

Application of Git in Windows (ii)-Remote warehouse code management

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.