--- tags: Git, disqus: hackmd --- # Git Master merge request衝突 在製作專案的時候,推上master發merge request結果卻有衝突 原因: 其他人也打包專案並且合入master了 解決: 所以要切到master做git pull -p 更新的你master,然後回到你的分支做 git rebase master 如此一來你不但有了其他人的檔案紀錄也把自己提升到最前面,這時候再到專案資料夾下打包一次,讓自己成為最新的打包檔。 然後用git push -f origin 分支名稱,推上覆蓋你的紀錄。 develop 跟 qatest 也要在合併一次。 步驟: git checkout master git pull -p git checkout 分支名稱 git rebase master git status --- yarn build git add -A git status git rebase --continue git push -f origin 分支名稱
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up