4 回答

TA貢獻1869條經驗 獲得超4個贊
git push -f origin last_known_good_commit:branch_name
git push -f origin cc4b63bebb6:alpha-0.3.0
receive.denyNonFastForwards
[remote rejected]
.
git push origin :alpha-0.3.0 git push origin cc4b63bebb6:refs/heads/alpha-0.3.0
receive.denyDeletes
git update-ref refs/heads/alpha-0.3.0 cc4b63bebb6 83c9191dea8

TA貢獻1858條經驗 獲得超8個贊
git push -f origin last_known_good_commit:branch_name
git push -f origin cc4b63bebb6:alpha-0.3.0
receive.denyNonFastForwards
[remote rejected]
.
git push origin :alpha-0.3.0 git push origin cc4b63bebb6:refs/heads/alpha-0.3.0
receive.denyDeletes
git update-ref refs/heads/alpha-0.3.0 cc4b63bebb6 83c9191dea8

TA貢獻1813條經驗 獲得超2個贊
git checkout alpha-0.3.0 git reset --hard cc4b63bebb6 git push origin +alpha-0.3.0

TA貢獻1942條經驗 獲得超3個贊
git revert
prompt> git revert 35f6af6f77f116ef922e3d75bc80a4a466f92650 [master 71738a9] Revert "Issue #482 - Fixed bug." 4 files changed, 30 insertions(+), 42 deletions(-) prompt> git status # On branch master # Your branch is ahead of 'origin/master' by 1 commit. # nothing to commit (working directory clean) prompt>
- 4 回答
- 0 關注
- 502 瀏覽
添加回答
舉報