问题出现原因
每次提交git的时候,都需要git push https://gitlab.com/gz_tesrer/monitor_platform.git master
,有的时候还会导致url拼错,很不方便
解决办法:绑定远程仓库的地址及分支
步骤一:git remote add origin https://gitlab.com/gz_tesrer/monitor_platform.git
步骤二:git push --set-upstream origin master
实际动手操作一下
修改一下文件试试吧
git status
git add .
git commit -m "增加远程仓库的绑定"
git push
网友评论