[git]間違えてpushした場合の取り消し方

LINEで送る
Pocket

  • git log
$git log 
commit XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Author: Foo Bar <XXX@XXXX>
Date:   Tue Mar 15 10:26:14 2016 +0900

    XXXを修正
  • git revert
git revert <commit id>
git push origin branch

Was this helpful?

0 / 0

コメントを残す 0

Your email address will not be published. Required fields are marked *