windows 下 git項目上傳

來源:互聯網
上載者:User

標籤:技術   ssh   2-2   網上   win   空格   引號   commit   客戶   

 

windows使用者首先得安裝git用戶端,這個網上有很多,就不贅述了,安裝完後會出現GitBash:

開啟GitBash終端,輸入:

git config --global user.name "帳號"
git config --global user.email "郵箱"

 

然後進入到項目件夾下

git init
git remote add origin  "項目的ssh"

 


git add .              //注意這裡 add 和  .  之間有個空格 
git commit -m "程式原始碼"                    //引號裡面內容相當於一種說明,這個隨意,對上傳無關
git push -u origin master       //這裡就開始上傳了

 

windows 下 git項目上傳

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.