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

LINEで送る
Pocket

git log --oneline
git reset --mixed 戻したいidを指定
git log --oneline
git add .
git commit -m "hoge"
git push -f origin hoge

Was this helpful?

0 / 0

コメントを残す 0

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