LoginSignup
1
1

More than 5 years have passed since last update.

[Git] Git patch rollback

Last updated at Posted at 2015-08-24

When you want to rollback a commit.

For github, go to the github commit page, and append .patch to the url, then you will get the patch of this commit. Save the content to a file like file.patch.

Use this command to rollback this commit:

git apply -R file.patch

Then this commit will be rollbacked.

References:
Reversing patches

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