天天看點

git 上傳本地代碼到 gitlab

前提電腦上有 git bash  

1.在源碼根目錄,右鍵  git bash here  

git 上傳本地代碼到 gitlab

2.指令行

git config --global user.name "less"

git config --global user.email "[email protected]"

git init

git remote add origin ssh://git@域名/tyshawn/sdap1.git

git add .   (注意空格之後的小點 .   )

git commit -m "程式源代碼"    (-m 參數後跟送出說明的方式  ,防止出現Please enter the commit message for your changes.                                                                Lines starting  ,後續一推消息)

git push -u origin master