GitHub installation and basic use under Windows

Source: Internet
Author: User

1 . The time it takes to install GitHub under win is very long, and sometimes the installation is unsuccessful for various reasons. Offline package Local installation is a convenient solution to this issue. Click Http://pan.baidu.com/s/1boGrNLP to download, unzip and run the Github.application directly, you can quickly install. Hope to be useful to everyone.

2. Frequently used commands

    • View Remote repositories

1 E:\swiftdisk\swiftdisk_jclouds [master]> git remote-v 2 origin  Https://github.com/lihanghang/swiftdisk_jclouds.git (fetch)3 Origin  https:/ /github.com/lihanghang/swiftdisk_jclouds.git (push)

You can see from the returned results that there is only one initialized warehouse

    • Get the latest version from remote to local
1 E:\swiftdisk\swiftdisk_jclouds [master]>  git fetch Origin master2fromhttps:// Github.com/lihanghang/swiftdisk_jclouds3  * Branch            master,     Fetch_head

Git fetch origin master: download code from the master branch of the remote Origin repository to the native Origin master

    • Compare the differences between local warehouses and remote references
1 E:\swiftdisk\swiftdisk_jclouds [master]> git log-p master: Origin/master

Because my local warehouse and remote warehouse code are the same, there is no other information

    • Merge remotely downloaded code into the local repository, remote and local merge
1 E:\swiftdisk\swiftdisk_jclouds [master]> git merge origin/master 2 already up-to-date.

My local reference code is the same as the remote code, so it's already up-to-date

GitHub installation and basic use under Windows

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.