如何使用 TortoiseGit 进行推送
在推送中出现以下错误
git.exe push "origin" master:master
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes before pushing again. See the 'non-fast forward'
section of 'git push --help' for details.
To //oht-fsv1/Source/Git/Test
! [rejected] master -> master (non-fast forward)
这是什么问题?
In push following errors occured
git.exe push "origin" master:master
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes before pushing again. See the 'non-fast forward'
section of 'git push --help' for details.
To //oht-fsv1/Source/Git/Test
! [rejected] master -> master (non-fast forward)
What's wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
来自
git推送
:因此,这将防止您丢失历史记录:首先尝试
git pull
,解决潜在的冲突,然后“git push
”结果。From
git push
:So this will prevent you to lose history: try a
git pull
first, resolve potential conflicts, and "git push
" the result.