1. 程式人生 > >如何把本地新的專案提交git伺服器(gitolite)

如何把本地新的專案提交git伺服器(gitolite)

如何把本新地專案提交git伺服器gitolite 修改伺服器git配置檔案,加入專案名稱,修改gitolite.conf檔案 在這裡插入圖片描述 repo myproject RW = myuserame

之後用putty登入到伺服器 執行如下4條命令: $ git add . $ git status $ git commit -m “add myproject” $ git push

這時候在git bash執行下面命令

[email protected] MINGW64 /d/workspace/myproject(master) $ git remote add origin [email protected]

:myproject.git $ git push -u origin master