首页 > Windows开发 > 详细

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

时间:2016-07-13 13:57:24      阅读:246      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!