Android教程網
  1. 首頁
  2. Android 技術
  3. Android 手機
  4. Android 系統教程
  5. Android 游戲
 Android教程網 >> Android技術 >> 關於Android編程 >> Android studio使用git教程

Android studio使用git教程

編輯:關於Android編程

①下載Git工具,配置到Android studio中

http://git-scm.com/downloads

---------------------------------------------------------------------------------------------

\

----------------------------------------------------------------------------------------------

\

----------------------------------------------------------------------------------------------

\

----------------------------------------------------------------------------------------------

②初始化本地倉庫,連接碼雲上的倉庫(保險起見:使用命令行,使用git-bash.exe輸入)

----------------------------------------------------------------------------------------------

\

----------------------------------------------------------------------------------------------

③將碼雲上的項目克隆到本地倉庫中,使用命令行(也可直接使用AS)將項目第一次提交(在本地項目目錄下建立工程)到碼雲上去

(注意本地倉庫的目錄結構,克隆時分清楚項目下的工程,不要隨意改變除工程外的文件)

-----------------------------------------------------------------------------------------------------------------------

\

-----------------------------------------------------------------------------------------------------------------------

\

-----------------------------------------------------------------------------------------------------------------------

\

------------------------------------------------------------------------------------------------------------------------

④轉到Android studio上實現工程的更新與修改。點擊Setting先設置Git插件,按順序點擊設置,最終出現success

-----------------------------------------------------------------------------------------------------------------------

\

------------------------------------------------------------------------------------------------------------------------

\

---------------------------------------------------------------------------------------------------------------------------

\

----------------------------------------------------------------------------------------------------------------------------

⑤用AS打開我們在本地目錄下的工程,修改其中任意文件,上傳到碼雲項目上去

------------------------------------------------------------------------------------------------------------------------------

\

--------------------------------------------------------------------------------------------------------------------------------

\

--------------------------------------------------------------------------------------------------------------------------------

\

--------------------------------------------------------------------------------------------------------------------------------

\

---------------------------------------------------------------------------------------------------------------------------------

\

---------------------------------------------------------------------------------------------------------------------------------

\

---------------------------------------------------------------------------------------------------------------------------------

\

---------------------------------------------------------------------------------------------------------------------------------

\

---------------------------------------------------------------------------------------------------------------------------------

⑥如果想clone碼雲項目到本地倉庫時:

---------------------------------------------------------------------------------------------------------------------------------

\

---------------------------------------------------------------------------------------------------------------------------------

\

---------------------------------------------------------------------------------------------------------------------------------

<<<以上就是關於Android studio使用git的教程>>>

  1. 上一頁:
  2. 下一頁:
熱門文章
閱讀排行版
Copyright © Android教程網 All Rights Reserved