首页 > 移动平台 > 详细

Mac系统下,在android studio中使用Github版本管理

时间:2016-01-04 13:07:35      阅读:360      评论:0      收藏:0      [点我收藏+]

1、下载并安装github客户端http://git-scm.com/download/ 

2、打开android studio,测试github是否使用ok

技术分享

点击“test”,如果弹出下述窗口,这说明github安装成功。

技术分享

很不幸,我第一次点击时弹出提示

“Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo”

在网站http://www.css88.com/archives/5183 以及http://mynameispagewood.com/web-development/osx-mavericks-git-error/ 找到了解决的办法,在命令中输入命令:

  1. sudo xcodebuild -license

This allowed me to view the X-code licence, and then agree to the terms. Voila, that’s it. Everything worked just fine after that.

重新打开android studio,重新点击“test”,测试ok

3、在android studio中输入已经创建好的账号和密码

技术分享

同样,测试是否OK

4、第一次上传本地工程到github

VCS->import into version control->share project on github

技术分享

接下来不要修改什么,直接默认ok即可

5、更新代码到github

右键module,Git

如果有要增加的文件,选择add

如果有要修改的文件,选择commit directory

技术分享

最后的时候,一定要记得push,将修改的地方更新到github服务器

技术分享






Mac系统下,在android studio中使用Github版本管理

原文:http://www.cnblogs.com/Amandaliu/p/5098294.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!