Revert commit on Website #60023
-
Select Topic AreaQuestion BodyHello there! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 10 replies
-
Hey. If you don't want to revert a commit using the console, the easiest way is to go to Github Desktop (which is UI-based rather than terminal), set current repo to the specific repo, click on history, and right click on a commit. You will now see a button that says "Revert changes in commit." |
Beta Was this translation helpful? Give feedback.
-
I just accidentally deleted/renamed the README.md file in a GitHub repository, and for some retarded reason it copied a fragment from the original file into a "renamed" version. I am not even sure how that is possible, but I suspect drag/drop that was poorly implemented, and I did not notice I was "dragging" a piece of text perhaps. github(.)com just infuriates me with their poor UI... If this is a drag and drop issue, then I have literally never been in a situration where I needed to drag & drop a piece of text. This is so dumb. I wonder why the issue was closed. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the tips.
|
Beta Was this translation helpful? Give feedback.
-
GitHub’s website lacks a revert button, so you’ll need to manually restore files, had to do the same on Pearl Lemon Web’s repo once. |
Beta Was this translation helpful? Give feedback.
Not as of this moment. Github doesn't have a web API call to do it, so it's not possible. See their API documentation to check what's possible.