注:借鉴了大佬的图附上链接:https://blog.csdn.net/u012145252/article/details/80628451
首先需要新建一个码云库

建库官方教程:https://gitee.com/help/articles/4120
然后在vs2019上打开Git


然后右键点击解决方案(可能不用执行),选择将解决方案添加到源代码管理

然后位于解决方案管理器的右边就会出现一个团队资源管理器

然后点击

进入管理Git的主页。点击同步

第一次推送会让你输入Git库的URL

输入URL之后,点击发布到Git存储库即可。
显示下图即为推送正常。

如果报错:Updates were rejected because the remote contains work that you do
需要点:主页—>分支—>变基

解决以上报错,回到主页,进入同步选项,

回到码云查看推送文件

后面的修改推送直接进入主页,点击同步进行推送即可。

网友评论