赞
踩
To https://xxxxxxxxxxxx.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to ‘https://xxxxxxxx.git’
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., ‘git pull …’) before pushing again.
hint: See the ‘Note about fast-forwards’ in ‘git push --help’ for details.git did not exit cleanly (exit code 1)
若远程分支上那些提交都不需要了
直接输入git push origin master -f,
强行让本地分支覆盖远程分支。:
右键显示Git Bash here
window+r
找到shel的位置
左边新建一个项,右边新建一个字符串值
左边的项,修改为Git Bash Here,右边修改为Icon
找到你之前下的git的文章地址,找到git bash.exe文件地址,将这个地址放到Git Bash Here中去
在Git Bash Here下建一个项
项的名称改为command
点击默认
将其中的值改为地址 +空格+“–cd=%v.”
然后就好啦
如果出现下面这种情况git init一下
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-dD3W2AEp-1681395928894)(C:\Users\小卢\AppData\Roaming\Typora\typora-user-images\image-20230413191622253.png)]
三个命令
然后就可以了
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。