最近工作git管理方面遇到一個疑問,如下:我有兩個分支dev和feature分支,目前出現(xiàn)如下疑問,我在feature分支先執(zhí)行g(shù)itpulloriginfeature操作,更新本地的分支到最新,然后執(zhí)行了gitrebasedev操作,最后執(zhí)行g(shù)itpushoriginfeature時會遇到如下錯誤Tossh://xxx@git.xxxx.com/project_xx/xxx.git![rejected]feature->feature(non-fast-forward)error:failedtopushsomerefsto'ssh://xxx@git.xxxx.com/project_xx/xxx.git'hint:Updateswererejectedbecausethetipofyourcurrentbranchisbehindhint:itsremotecounterpart.Integratetheremotechanges(e.g.hint:'gitpull...')beforepushingagain.hint:Seethe'Noteaboutfast-forwards'in'gitpush--help'fordetails.最后再執(zhí)行一次gitpulloriginfeature操作才能成功,這樣會產(chǎn)生一條mergelog,并且內(nèi)容為空Showing0changedfiles。疑問,為什么我之前已經(jīng)執(zhí)行了pull更新到最新了?不知道是不是我操作流程的問題,請大牛們指教,謝謝!
git rebase遇到的一個疑問
BIG陽
2019-04-10 20:48:53