git smartgit Push:并不是所有的 refs 都被推送了
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/21376722/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
smartgit Push: Not all refs have been pushed
提问by quartaela
I have started to learn Git for a week,and I'm facing with a problem at work. The thing is I have made some changes while I was in develop
branch and after I finish my work I tried to commit and push,however, I could not get rid of last error. Here you can see s screenshot of the smartgit and logs.
我已经开始学习 Git 一个星期了,我在工作中遇到了一个问题。问题是我在develop
分支时做了一些更改,完成工作后我尝试提交和推送,但是,我无法摆脱最后一个错误。在这里您可以看到 smartgit 和日志的屏幕截图。
also you can see the log file here;
您也可以在此处查看日志文件;
回答by Vlad Nikitin
just make
只是做
git checkout develop
git pull
git push
you have this error because there are some new commits in the remote develop branch which you do not have in your local develop branch , this changes has to be fetch first
您遇到此错误是因为远程开发分支中有一些新提交,而您在本地开发分支中没有这些新提交,必须先获取此更改
回答by nahlamortada
make fetch first then push as this indicats that something changed at the remote
先获取然后推送,因为这表明远程发生了某些变化