文章目錄
導讀
- android studio中git、github配置
- android studio上傳整個項目
- android studio更新
- 使用git下載github項目
- github下載慢解決
需要理解:
github ≠ git
Android studio提交git成功 ≠ 提交github成功
各軟件版本
Git安裝
改了安裝路徑,其他都是一直下一步
配置
- android-studio中github配置
- 登錄成功
- android-studio 中git程序配置
android-studio上傳本地項目到github
這個時候就可以在github上面看到自己託管的代碼了,假如github上面沒有文件,請執行下圖步驟。
同步代碼:下圖
android-studio 提交代碼
此時提交git後,代碼並沒有同步github,需要將git的代碼推到github,請執行上面圖:同步代碼
android-studio更新代碼
git 下載github代碼到文件夾中
可能出現下載超時,需要手動修改host文件,具體操作
修改提交作者
android studio 右下角,單擊Git:master
可能遺漏
git dos窗口 會彈出輸入賬號密碼
android studio也可能需要輸入賬號密碼
github需要創建用戶相關信息,需要在github建全相關個人資料