一、下载并安装github客户端http://git-scm.com/download/ css
二、打开android studio,测试github是否使用okandroid
点击“test”,若是弹出下述窗口,这说明github安装成功。git
很不幸,我第一次点击时弹出提示github
“Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo”web
在网站http://www.css88.com/archives/5183 以及http://mynameispagewood.com/web-development/osx-mavericks-git-error/ 找到了解决的办法,在命令中输入命令:xcode
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测试
三、在android studio中输入已经建立好的帐号和密码网站
一样,测试是否OKui
四、第一次上传本地工程到github
VCS->import into version control->share project on github
接下来不要修改什么,直接默认ok便可
五、更新代码到github
右键module,Git
若是有要增长的文件,选择add
若是有要修改的文件,选择commit directory
最后的时候,必定要记得push,将修改的地方更新到github服务器