git 尝试将提交的更改推送到主文件夹时显示的冲突符号
git conflict notation showing when tried to push the commited change into master folder
在我们的组织中,我们在系统中维护两个文件夹,一个用于用户,一个用于主机。
这两个文件夹分别远程连接到主分支和用户分支。
在用户文件夹中,我们进行更改,然后在添加和提交之后将存储库推送到 remote.then 中的用户分支,我将更改复制到主文件夹并尝试将其推送到主分支。
Pushing to git@gitlab.emvigotech.com:root/ibox.git
To git@gitlab.emvigotech.com:root/ibox.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https://github.com/BigMeanCat/CMDA'
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.
然后我试了
pull origin master
然后冲突就产生了。
大家帮帮我
错误的原因是你应该在推送到主分支之前拉取最新的更改。
简单的解决方案是备份用户文件夹中所做的更改。然后删除本地的 master 文件夹 system.then 将项目克隆到 master 文件夹中,然后拉取 master branch.then 将更改复制到主文件夹中,然后添加、提交和推送。
我认为这对你的 problem.please 有用。请注意,当你尝试将新更改推送到 master 分支时,请确保你提取了最后的更改。
在我们的组织中,我们在系统中维护两个文件夹,一个用于用户,一个用于主机。 这两个文件夹分别远程连接到主分支和用户分支。 在用户文件夹中,我们进行更改,然后在添加和提交之后将存储库推送到 remote.then 中的用户分支,我将更改复制到主文件夹并尝试将其推送到主分支。
Pushing to git@gitlab.emvigotech.com:root/ibox.git
To git@gitlab.emvigotech.com:root/ibox.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https://github.com/BigMeanCat/CMDA'
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.
然后我试了
pull origin master
然后冲突就产生了。
大家帮帮我
错误的原因是你应该在推送到主分支之前拉取最新的更改。
简单的解决方案是备份用户文件夹中所做的更改。然后删除本地的 master 文件夹 system.then 将项目克隆到 master 文件夹中,然后拉取 master branch.then 将更改复制到主文件夹中,然后添加、提交和推送。
我认为这对你的 problem.please 有用。请注意,当你尝试将新更改推送到 master 分支时,请确保你提取了最后的更改。