通過android studio上傳項目到github

來源:互聯網
上載者:User

標籤:提示   empty   img   class   set   nbsp   blank   git安裝   技術   

第一步,下載git用戶端,並且安裝

:https://git-for-windows.github.io/

 

第二步,在android studio中配置git(注意第一張圖中的C:\Program Files\Git\bin\git.exe 是我的git安裝後的bin目錄)以及github賬戶(若沒有,需要提前到github上註冊)

點擊test,會彈出successful!

第三步,上傳項目

 

 第一次上傳的時候提示如右上方,顯示已建立庫,但是代碼沒有上傳。

Can’t finish GitHub sharing process Successfully created project ‘GitHubDemo’ on GitHub, but initial commit failed: * Please tell me who you are. Run git config –global user.email “[email protected]” git config –global user.name “Your Name” to set your account’s default identity. Omit –global to set the identity only in this repository. fatal: empty ident name (for ) not allowed during executing git -c core.quotepath=false commit -m “Initial commit xxx” –

 

我的解決辦法:

再次重複第三步驟就可以了,會彈出輸入hgithub的帳號密碼介面,然後就成功了。也可以在github上看到。

網上有個其他的解決辦法:http://blog.csdn.net/baidu_17313961/article/details/52068846

 

通過android studio上傳項目到github

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.