1.添加遠程倉庫地址
git remote add origin [email protected]:/home/git/路徑/項目名.git |
2.提交本地全部代碼
git push --all |
3.查看提交狀態
git status |
到這裏就ok了
其他常用命令
刪除遠程倉庫
$ git remote rm origin |
查看遠程版本
git remote -v |
查看提交日誌
$ git log |
提交代碼
$ git commit -m 修改日誌內容 |