LoginSignup
4
1

More than 5 years have passed since last update.

【git】リモートにpushした直前のcommitを取り消す方法

Posted at

自分用メモ

commitをpushした後に、リモートから取り消したいと思ったときは

git reset HEAD^
git push origin +HEAD

で出来る。

4
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
1