待合并的commit沒有提交到遠(yuǎn)程
git rebase -i
在彈出的文件里面第一行保持不動(dòng),
后面的pick改為s
然后保存文件
git push 即可
待合并的commit已經(jīng)提交到遠(yuǎn)程
git reset commit_id
git add .
git commit -am "Here's the bug fix that closes #28"
git push --force
git rebase -i
在彈出的文件里面第一行保持不動(dòng),
后面的pick改為s
然后保存文件
git push 即可
git reset commit_id
git add .
git commit -am "Here's the bug fix that closes #28"
git push --force