Is it possible to undo a commit via the GitHub web interface?

I teach the HTML class on Chromebooks. We use GitHub for version control, and I would like to show my students how to return a commit. Since we don’t have shell access on Chromebooks, I was hoping to find a way to do this online through the GitHub website. Is it possible? I'm starting to think that this may not be so.

+5
source share
1 answer

You can not. GitHub does not have a web API call for this.

The full API can be found here .


What can you do?

Since we don’t have shell access on Chromebooks ...

You can always go back locally, and then press the -f code to force the code to be pressed, but since you don’t have a command line for this, you will need to manually return the code and commit the "old" "back.

If you have the option of using the CLI rather than the GitHub website, take a look at this answer. It will be very helpful for you. It details how to undo commit in various ways using the CLI.

How to move HEAD back to the previous place? (Separate head)

+4
source

Source: https://habr.com/ru/post/1242644/


All Articles