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

一、下載並安裝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服務器




相關文章
相關標籤/搜索