0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

GitHubデスクトップの取り消す技術

Posted at

Revert(リヴァート)

pushした情報をローカルリポジトリに戻すことはできないので本当にpushして良いかどうかの確認をしてからpushする事が大事ですが、

もし誤ってpushしなくていいものをpushした際の対処法を記述します。

誤ってpushしたcommitをリヴァート(取り消す)技術を使います。

historyを確認し誤ってpushしたものを選択し、右クリックしRevert this Commitをクリックします。そして[Push origin]をクリック。すると...リモートリポジトリで誤ってputhしたコードは消えています!!また、ローカルリポジトリでも前のコードに戻っています!

Undo

誤った情報をcommitしてしまったら。
pushする前なら簡単に取り消す事ができます。

commitしたその欄にUndoが表示されます。それをクリックする事で、commitする前の表示に変わってくれます。

技術的な事、ご指摘がありましたらよろしくお願いします。

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?