windows 下 git項目上傳

 

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

打開GitBash終端,輸入:windows

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

 

而後進入到項目件夾下blog

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

 


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

相關文章
相關標籤/搜索