码迷,mamicode.com
首页 > Windows程序 > 详细

github在windows下的安装和基本使用

时间:2016-07-13 13:58:17      阅读:298      评论:0      收藏:0      [点我收藏+]

标签:

1在win下安装github时花费的时间是非常长的,有时还会出现因各种原因安装不成功。离线包本地安装方便的解决了此问题。点击http://pan.baidu.com/s/1boGrNLP可下载,解压后直接点击运行GitHub.application,可快速安装。希望对大家有用。

2、经常用的一些命令

  • 查看远程仓库

 

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)

从返回结果可以看出只有一个初始化仓库

  • 从远程获取最新版本到本地
1 E:\swiftdisk\swiftdisk_jclouds [master]>  git fetch origin master
2 From https://github.com/lihanghang/swiftdisk_jclouds
3  * branch            master     -> FETCH_HEAD

git fetch origin master :从远程的origin仓库的master分支下载代码到本地的origin master

  •  比较本地的仓库和远程参考的区别
1 E:\swiftdisk\swiftdisk_jclouds [master]> git log -p master.. origin/master

因为我的本地仓库和远程仓库代码相同所以没有其他任何信息

  •  把远程下载下来的代码合并到本地仓库,远程的和本地的合并
1 E:\swiftdisk\swiftdisk_jclouds [master]> git merge origin/master
2 Already up-to-date.

我的本地参考代码和远程代码相同,所以是Already up-to-date

github在windows下的安装和基本使用

标签:

原文地址:http://www.cnblogs.com/lihanghang/p/5666549.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!