git 删除历史推送记录
删除941a06e
到201f2ba
的历史推送
git log –oneline
1 | ffd9347 (HEAD -> master, origin/master, origin/HEAD) update |
git rebase -i 941a06e
1 | 1 pick 0a58703 oo |
:1,10s/pick/drop/g
:wq
1 | 1 drop 0a58703 oo |
git push –force
删除941a06e
到201f2ba
的历史推送
git log –oneline
1 | ffd9347 (HEAD -> master, origin/master, origin/HEAD) update |
git rebase -i 941a06e
1 | 1 pick 0a58703 oo |
:1,10s/pick/drop/g
:wq
1 | 1 drop 0a58703 oo |
git push –force