visual studio 关于 Updates were rejected because the remote contains work that you do

如新建项目后,出现此问题,可进行如下操作:

visual studio 关于 Updates were rejected because the remote contains work that you do

1.点击后,选择“打开命令提示符",并键入如下命令:

git pull origin master // 把本地仓库的变化连接到远程仓库主分支

 

2.重置分支,使当前分支跟踪远程分支

visual studio 关于 Updates were rejected because the remote contains work that you do

3.重新提交

上一篇:Cannot use v-for on stateful component root element because it renders multiple elements.


下一篇:python程序 当使用到有关图像的package时,报错“This application failed to start because it could not find or load the