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
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