1、可以手動拉取代碼,也可從idea裏面直接拉取
2、填寫代碼地址和生成的目錄
3、手動拉取的代碼,需要建立版本控制,直接從idea裏面拉取不用(這一步和第四步適合手動拉取)
4、項目右鍵先add,這是時應該會變綠
5、然後修改你的代碼,完成代碼以後
6、選擇你要commit的文件
7、推向遠程庫
如果遇到問題:
Push failed
GitLab: You are not allowed to push code to this project.
Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
上面這個是權限問題,需要管理配置合理的權限
之後push推送失敗:還可能的幾個原因:
遠程庫和你當前的版本不一致(就是說你拉取代碼之後,有人做了新的提交)
這時,你需要把你的代碼
備份!
備份!
備份!
然後重新拉取,在修改,重新push