你能幫我解決我的問題嗎?當我嘗試從“dev”分支中提取時發生錯誤。我瀏覽了解決方案,它說我需要“變基”,但它并沒有解決我的問題。
CT aohc@MP1GYWQA MINGW64 /c/TCO/source/RAPMD.Web.Frontend (web_feature/TCORAPD-122389-1)
$ git pull origin dev
From https://dev.azure.com/xxxx/xxxx/_git/TCO-FGP-Rapmd
* branch dev -> FETCH_HEAD
fatal: Not possible to fast-forward, aborting.
uj5u.com熱心網友回復:
您可以按照以下步驟操作:
- 跑
git pull --rebase origin dev - 如果您遇到沖突,那么您需要解決這些沖突并運行
git add <file_name>/ git add .git rebase --continue
- 繼續第二步,直到解決沖突(記住 rebase 比較更改提交)
- 然后
git rebase --skip根據需要運行
- 然后
- 成功應用變基后,您需要強制推送更改
- 運行
git push --force-with-lease origin dev(更安全的強制推動方式)或git push -f origin dev
- 運行
供參考:https ://gitexplorer.com/
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/484663.html
標籤:混帐 变基 atlassian-sourcetree 拉
上一篇:如何有條件地運行gitpush
