βΉοΈ Skipped - page is already crawled
| Filter | Status | Condition | Details |
|---|---|---|---|
| HTTP status | PASS | download_http_code = 200 | HTTP 200 |
| Age cutoff | PASS | download_stamp > now() - 6 MONTH | 7.4 months ago (distributed domain, exempt) |
| History drop | PASS | isNull(history_drop_reason) | No drop reason |
| Spam/ban | PASS | fh_dont_index != 1 AND ml_spam_score = 0 | ml_spam_score=0 |
| Canonical | PASS | meta_canonical IS NULL OR = '' OR = src_unparsed | Not set |
| Property | Value |
|---|---|
| URL | https://github.com/orgs/community/discussions/60023 |
| Last Crawled | 2025-09-13 08:13:27 (7 months ago) |
| First Indexed | not set |
| HTTP Status Code | 200 |
| Content | |
| Meta Title | Revert commit on Website Β· community Β· Discussion #60023 Β· GitHub |
| Meta Description | Revert commit on Website |
| Meta Canonical | null |
| Boilerpipe Text |
You canβt perform that action at this time.
|
| Markdown | [Skip to content](https://github.com/orgs/community/discussions/60023#start-of-content)
## Navigation Menu
Toggle navigation
[Sign in](https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Forgs%2Fcommunity%2Fdiscussions%2F60023)
Appearance settings
[community](https://github.com/community)
- Platform
- [GitHub Copilot Write better code with AI](https://github.com/features/copilot)
- [GitHub Spark New Build and deploy intelligent apps](https://github.com/features/spark)
- [GitHub Models New Manage and compare prompts](https://github.com/features/models)
- [GitHub Advanced Security Find and fix vulnerabilities](https://github.com/security/advanced-security)
- [Actions Automate any workflow](https://github.com/features/actions)
- [Codespaces Instant dev environments](https://github.com/features/codespaces)
- [Issues Plan and track work](https://github.com/features/issues)
- [Code Review Manage code changes](https://github.com/features/code-review)
- [Discussions Collaborate outside of code](https://github.com/features/discussions)
- [Code Search Find more, search less](https://github.com/features/code-search)
Explore
- [Why GitHub](https://github.com/why-github)
- [Documentation](https://docs.github.com/)
- [GitHub Skills](https://skills.github.com/)
- [Blog](https://github.blog/)
Integrations
- [GitHub Marketplace](https://github.com/marketplace)
[View all features](https://github.com/features)
- Solutions
By company size
- [Enterprises](https://github.com/enterprise)
- [Small and medium teams](https://github.com/team)
- [Startups](https://github.com/enterprise/startups)
- [Nonprofits](https://github.com/solutions/industry/nonprofits)
By use case
- [DevSecOps](https://github.com/solutions/use-case/devsecops)
- [DevOps](https://github.com/solutions/use-case/devops)
- [CI/CD](https://github.com/solutions/use-case/ci-cd)
- [View all use cases](https://github.com/solutions/use-case)
By industry
- [Healthcare](https://github.com/solutions/industry/healthcare)
- [Financial services](https://github.com/solutions/industry/financial-services)
- [Manufacturing](https://github.com/solutions/industry/manufacturing)
- [Government](https://github.com/solutions/industry/government)
- [View all industries](https://github.com/solutions/industry)
[View all solutions](https://github.com/solutions)
- Resources
Topics
- [AI](https://github.com/resources/articles/ai)
- [DevOps](https://github.com/resources/articles/devops)
- [Security](https://github.com/resources/articles/security)
- [Software Development](https://github.com/resources/articles/software-development)
- [View all](https://github.com/resources/articles)
Explore
- [Learning Pathways](https://resources.github.com/learn/pathways)
- [Events & Webinars](https://github.com/resources/events)
- [Ebooks & Whitepapers](https://github.com/resources/whitepapers)
- [Customer Stories](https://github.com/customer-stories)
- [Partners](https://partner.github.com/)
- [Executive Insights](https://github.com/solutions/executive-insights)
- Open Source
- [GitHub Sponsors Fund open source developers](https://github.com/sponsors)
- [The ReadME Project GitHub community articles](https://github.com/readme)
Repositories
- [Topics](https://github.com/topics)
- [Trending](https://github.com/trending)
- [Collections](https://github.com/collections)
- Enterprise
- [Enterprise platform AI-powered developer platform](https://github.com/enterprise)
Available add-ons
- [GitHub Advanced Security Enterprise-grade security features](https://github.com/security/advanced-security)
- [Copilot for business Enterprise-grade AI features](https://github.com/features/copilot/copilot-business)
- [Premium Support Enterprise-grade 24/7 support](https://github.com/premium-support)
- [Pricing](https://github.com/pricing)
Search or jump to...
# Search code, repositories, users, issues, pull requests...
[Search syntax tips](https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax)
# Provide feedback
Cancel
Submit feedback
# Saved searches
## Use saved searches to filter your results more quickly
Cancel
Create saved search
[Sign in](https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Forgs%2Fcommunity%2Fdiscussions%2F60023)
[Sign up](https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fdiscussions_fragments%2Fdiscussion_layout&source=header-repo&source_repo=community%2Fcommunity)
Appearance settings
Resetting focus
You signed in with another tab or window. [Reload](https://github.com/orgs/community/discussions/60023) to refresh your session. You signed out in another tab or window. [Reload](https://github.com/orgs/community/discussions/60023) to refresh your session. You switched accounts on another tab or window. [Reload](https://github.com/orgs/community/discussions/60023) to refresh your session.
Dismiss alert
{{ message }}
# [ GitHub Community](https://github.com/community)
- [Overview](https://github.com/community)
- [Repositories](https://github.com/orgs/community/repositories)
- [Discussions](https://github.com/orgs/community/discussions)
- [Packages](https://github.com/orgs/community/packages)
- [People](https://github.com/orgs/community/people)
More
- [Overview](https://github.com/community)
- [Repositories](https://github.com/orgs/community/repositories)
- [Discussions](https://github.com/orgs/community/discussions)
- [Packages](https://github.com/orgs/community/packages)
- [People](https://github.com/orgs/community/people)
# Revert commit on Website \#60023
Closed
[Answered](https://github.com/orgs/community/discussions/60023#discussioncomment-6355465) by [GhostOf0days](https://github.com/GhostOf0days "GhostOf0days")
[BtucoGit](https://github.com/BtucoGit) asked this question in [General](https://github.com/orgs/community/discussions/categories/general)
[Revert commit on Website](https://github.com/orgs/community/discussions/60023#top) \#60023
[ BtucoGit](https://github.com/BtucoGit)
Jul 4, 2023
Β· 7 comments Β· 14 replies
[Answered](https://github.com/orgs/community/discussions/60023#discussioncomment-6355465) by [GhostOf0days](https://github.com/GhostOf0days "GhostOf0days")
[Return to top](https://github.com/orgs/community/discussions/60023#top)
Discussion options
# {{title}}
Something went wrong.
### Uh oh\!
There was an error while loading. [Please reload this page](https://github.com/orgs/community/discussions/60023).
Quote reply
## [ BtucoGit](https://github.com/BtucoGit) [Jul 4, 2023](https://github.com/orgs/community/discussions/60023#discussion-5366652)
\-
| |
|---|
| Select Topic Area Question Body Hello there\! I'm beginner on GitHub, and can't resolve one problem - on desktop version i can "Revert changes in commit" in history without problems. But i can't find any way to revert commits on Website. I need to use the website and not the git console. A search on the web yielded no results - everywhere is used console. It is possible to use only website? |
Beta Was this translation helpful? [Give feedback.](https://github.com/orgs/community/discussions/60023)
13
You must be logged in to vote
All reactions
Answered by [GhostOf0days](https://github.com/GhostOf0days)
[Jul 4, 2023](https://github.com/orgs/community/discussions/60023#discussioncomment-6355465)
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](https://docs.github.com/en/rest?apiVersion=2022-11-28) to check what's possible.
[View full answer](https://github.com/orgs/community/discussions/60023#discussioncomment-6355465)
## Replies: 7 comments Β· 14 replies
- [Oldest](https://github.com/orgs/community/discussions/60023?sort=old)
- [Newest](https://github.com/orgs/community/discussions/60023?sort=new)
- [Top](https://github.com/orgs/community/discussions/60023?sort=top)
Comment options
# {{title}}
Something went wrong.
### Uh oh\!
There was an error while loading. [Please reload this page](https://github.com/orgs/community/discussions/60023).
Quote reply
edited
# {{editor}}'s edit
{{actor}} deleted this content
.
# {{editor}}'s edit
Something went wrong.
### Uh oh\!
There was an error while loading. [Please reload this page](https://github.com/orgs/community/discussions/60023).
### [ GhostOf0days](https://github.com/GhostOf0days) [Jul 4, 2023](https://github.com/orgs/community/discussions/60023#discussioncomment-6353854)
\-
| |
|---|
| Hey. If you don't want to revert a commit using the console, the easiest way is to go to [Github Desktop](https://desktop.github.com/) (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." [](https://private-user-images.githubusercontent.com/70134418/250917939-94dfca81-3b13-4ace-a05a-01cda3d8d195.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTc3NTE1MDksIm5iZiI6MTc1Nzc1MTIwOSwicGF0aCI6Ii83MDEzNDQxOC8yNTA5MTc5MzktOTRkZmNhODEtM2IxMy00YWNlLWEwNWEtMDFjZGEzZDhkMTk1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA5MTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwOTEzVDA4MTMyOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM5MjA2ZTg1M2VjODBjYmVkZjUxMmY2Zjc0NWJmOTZmOTdkMmJhZDI5MzE3OGZiMTg0YmI2OTI5ZTVlNzkxMjkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.nKmk_M9ZPMVwlS_mv7pFKV-HghScVjr-s88vRw6zmWw) Click it then click push origin at the top. [](https://private-user-images.githubusercontent.com/70134418/250918194-631ae52c-b0e0-4ddb-9c89-53f22b10e936.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTc3NTE1MDksIm5iZiI6MTc1Nzc1MTIwOSwicGF0aCI6Ii83MDEzNDQxOC8yNTA5MTgxOTQtNjMxYWU1MmMtYjBlMC00ZGRiLTljODktNTNmMjJiMTBlOTM2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA5MTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwOTEzVDA4MTMyOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTBhYmQwYjYxMTJhNmJhOGM5ZGRmZWU4MDQwZmNiNzg1OWVlYTljYjNhYTVhMjkwZTFhNDAyMTFjMDRiOWIwMTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.w3RyaVJVdCZJorrJUQAiwQ4EjhFSzcB3g3bagIEhjqc) |
Beta Was this translation helpful? [Give feedback.](https://github.com/orgs/community/discussions/60023)
8
You must be logged in to vote
π
10
β€οΈ
3
All reactions
- π
10
- β€οΈ
3
6 replies
[](https://github.com/GhostOf0days)
Comment options
# {{title}}
Something went wrong.
### Uh oh\!
There was an error while loading. [Please reload this page](https://github.com/orgs/community/discussions/60023).
Quote reply
edited
# {{editor}}'s edit
{{actor}} deleted this content
.
# {{editor}}'s edit
Something went wrong.
### Uh oh\!
There was an error while loading. [Please reload this page](https://github.com/orgs/community/discussions/60023).
#### [GhostOf0days](https://github.com/GhostOf0days) [Jul 4, 2023](https://github.com/orgs/community/discussions/60023#discussioncomment-6353937)
\-
| |
|---|
| Regardless, please do not avoid git for terminal. It is extremely useful to you as a dev. Avoiding it will only hurt you. It's easy to setup: <https://docs.github.com/en/get-started/quickstart/set-up-git>. To revert a commit you can `git reset --hard<commit-hash>` then `git push origin <branch-name>`, where would likely be main for you as I assume you don't know much about branching yet. Commit hash is the string that appears to the right of a commit when you click the following: [](https://private-user-images.githubusercontent.com/70134418/250919205-c4aed7b2-5b26-4783-9df8-278de1f97ba8.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTc3NTE1MDksIm5iZiI6MTc1Nzc1MTIwOSwicGF0aCI6Ii83MDEzNDQxOC8yNTA5MTkyMDUtYzRhZWQ3YjItNWIyNi00NzgzLTlkZjgtMjc4ZGUxZjk3YmE4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA5MTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwOTEzVDA4MTMyOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTE5NjRmYTMyZTk1YzVkNjhkZDYwZTdiZTljMGQyMDAzMDFkM2I2YWFhZDIzZTk2YjdmOGU1ZjMwZDI3ZWFlMzUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.dqqzMI3HrW2icFjNbEZgfun_LDlGCktIyWvHJfYsga0). You can also do `git reset --hard HEAD~number`, where number is how many commits you want to reset to (so HEAD~1 would revert to your last commit). After that, do push again as specified before. You can also do soft instead of hard. Soft keeps changes after that commit you reset to, so you can make modifications, but you are now at the commit you reset to. Hard resets the staging area (where you see to the commit (basically where you see the commits below) and starts you off at a clean slate as if you made no changes since the commit you reset to. [](https://private-user-images.githubusercontent.com/70134418/250920497-7b9c55df-a727-4de0-837e-0fda1d5233f9.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTc3NTE1MDksIm5iZiI6MTc1Nzc1MTIwOSwicGF0aCI6Ii83MDEzNDQxOC8yNTA5MjA0OTctN2I5YzU1ZGYtYTcyNy00ZGUwLTgzN2UtMGZkYTFkNTIzM2Y5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA5MTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwOTEzVDA4MTMyOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU5OTEzY2RjYTFjMWQzMTZkNGYyYzdjNWVmOTc5NzlmYzA1Njk2MmJiOTY1ODUyOTExOWFjZDJiZWVkNmZlNTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.23rAgsG3hXa9fnzVRs1kgnhwmzVeywU5eXijLZ19SX0) You can also force push by adding `--force` after the word "push" in `git push origin <branch-name>` (again, for you, branch name is likely main). This forces the remote repo (on Github website) to have the changes you made with the force push even if you didn't pull (bring in changes that you had on the remote repo but nor locally). So if you have 3 commits (changes) that you didn't pull to the local version on your computer, they would be overwritten with a force push. |
Beta Was this translation helpful? [Give feedback.](https://github.com/orgs/community/discussions/60023)
π
1
π
2
β€οΈ
3
All reactions
- π
1
- π
2
- β€οΈ
3
[](https://github.com/BtucoGit)
Comment options
# {{title}}
Something went wrong.
### Uh oh\!
There was an error while loading. [Please reload this page](https://github.com/orgs/community/discussions/60023).
Quote reply
#### [BtucoGit](https://github.com/BtucoGit) [Jul 4, 2023](https://github.com/orgs/community/discussions/60023#discussioncomment-6355333) Author
\-
| |
|---|
| Yes, my dear ones, I know about the possibilities and benefits of the console, as well as about the possibility of revert commit from the application to PC. I'm interested in revert commit through the Website, because there is not always access not only to the console, but also to the computer as a whole. It is possible? |
Beta Was this translation helpful? [Give feedback.](https://github.com/orgs/community/discussions/60023)
π
4
All reactions
- π
4
[](https://github.com/GhostOf0days)
Comment options
# {{title}}
Something went wrong.
### Uh oh\!
There was an error while loading. [Please reload this page](https://github.com/orgs/community/discussions/60023).
Quote reply
#### [GhostOf0days](https://github.com/GhostOf0days) [Jul 4, 2023](https://github.com/orgs/community/discussions/60023#discussioncomment-6355465)
\-
| |
|---|
| 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](https://docs.github.com/en/rest?apiVersion=2022-11-28) to check what's possible. |
Beta Was this translation helpful? [Give feedback.](https://github.com/orgs/community/discussions/60023)
Marked as answer
π
16
π
30
All reactions
- π
16
- π
30
Answer selected by [BtucoGit](https://github.com/BtucoGit)
[](https://github.com/GhostOf0days)
Comment options
# {{title}}
Something went wrong.
### Uh oh\!
There was an error while loading. [Please reload this page](https://github.com/orgs/community/discussions/60023).
Quote reply
#### [GhostOf0days](https://github.com/GhostOf0days) [Jul 4, 2023](https://github.com/orgs/community/discussions/60023#discussioncomment-6355469)
\-
| |
|---|
| If the API call was available, you would be able to do it. |
Beta Was this translation helpful? [Give feedback.](https://github.com/orgs/community/discussions/60023)
All reactions
[](https://github.com/GhostOf0days)
Comment options
# {{title}}
Something went wrong.
### Uh oh\!
There was an error while loading. [Please reload this page](https://github.com/orgs/community/discussions/60023).
Quote reply
edited
# {{editor}}'s edit
{{actor}} deleted this content
.
# {{editor}}'s edit
Something went wrong.
### Uh oh\!
There was an error while loading. [Please reload this page](https://github.com/orgs/community/discussions/60023).
#### [GhostOf0days](https://github.com/GhostOf0days) [Jul 4, 2023](https://github.com/orgs/community/discussions/60023#discussioncomment-6355491)
\-
| |
|---|
| There is an exception, however, in that you can revert commits for merged pull requests on the website, so if you make your commits as pull requests, I guess that's a bypass to reverting commits on the website. |
Beta Was this translation helpful? [Give feedback.](https://github.com/orgs/community/discussions/60023)
π
1
All reactions
- π
1
[](https://github.com/BtucoGit)
Comment options
# {{title}}
Something went wrong.
### Uh oh\!
There was an error while loading. [Please reload this page](https://github.com/orgs/community/discussions/60023).
Quote reply
#### [BtucoGit](https://github.com/BtucoGit) [Jul 5, 2023](https://github.com/orgs/community/discussions/60023#discussioncomment-6358399) Author
\-
| |
|---|
| Many thanks! That one of reasons to learn console more tighter interaction |
Beta Was this translation helpful? [Give feedback.](https://github.com/orgs/community/discussions/60023)
All reactions
Comment options
# {{title}}
Something went wrong.
### Uh oh\!
There was an error while loading. [Please reload this page](https://github.com/orgs/community/discussions/60023).
Quote reply
### [ Turbulentarius](https://github.com/Turbulentarius) [Jan 24, 2024](https://github.com/orgs/community/discussions/60023#discussioncomment-8230159)
\-
Beta Was this translation helpful? [Give feedback.](https://github.com/orgs/community/discussions/60023)
4
You must be logged in to vote
π
9
π
3
All reactions
- π
9
- π
3
2 replies
[](https://github.com/dhust)
Comment options
# {{title}}
Something went wrong.
### Uh oh\!
There was an error while loading. [Please reload this page](https://github.com/orgs/community/discussions/60023).
Quote reply
edited
# {{editor}}'s edit
{{actor}} deleted this content
.
# {{editor}}'s edit
Something went wrong.
### Uh oh\!
There was an error while loading. [Please reload this page](https://github.com/orgs/community/discussions/60023).
#### [dhust](https://github.com/dhust) [Aug 19, 2024](https://github.com/orgs/community/discussions/60023#discussioncomment-10377303)
\-
| |
|---|
| We actually can't undo a commit on the website? That's crazy! How is an "undo" operation not possible? I ask because I accidently made an additional commit using Github Desktop. To go back I right-clicked and chose `Revert changes in commit` but it gave me an error. I'm like "Ok, I'll just go to the website and do it there." Nope. :( Once year I go back to trying Github and it ticks me off within a day. How is this the norm? This is probably the only service/website I hate using. Rant over. |
Beta Was this translation helpful? [Give feedback.](https://github.com/orgs/community/discussions/60023)
π
14
All reactions
- π
14
[](https://github.com/levino)
Comment options
# {{title}}
Something went wrong.
### Uh oh\!
There was an error while loading. [Please reload this page](https://github.com/orgs/community/discussions/60023).
Quote reply
#### [levino](https://github.com/levino) [Sep 6, 2025](https://github.com/orgs/community/discussions/60023#discussioncomment-14326011)
\-
| |
|---|
| Compared to what? Which service are you using instead of GitHub? |
Beta Was this translation helpful? [Give feedback.](https://github.com/orgs/community/discussions/60023)
π
1
All reactions
- π
1
Comment options
# {{title}}
Something went wrong.
### Uh oh\!
There was an error while loading. [Please reload this page](https://github.com/orgs/community/discussions/60023).
Quote reply
### [ aly-fly](https://github.com/aly-fly) [Nov 6, 2024](https://github.com/orgs/community/discussions/60023#discussioncomment-11166514)
\-
| |
|---|
| Thanks for the tips. TLDR - here are the steps to revert: open the repo on website, click the icon with the `clock and <nn> Commits` copy the full hash of the time you want revert to (upper position is later in time) use command: `git reset --hard <long hash number copied>` review that source files are with contents as you want them use command `git push origin main --force` to copy current state on the computer to the server refresh the website and latest unwanted commit(s) will disappear. make a happy face :) |
Beta Was this translation helpful? [Give feedback.](https://github.com/orgs/community/discussions/60023)
6
You must be logged in to vote
π
13
π
4
All reactions
- π
13
- π
4
4 replies
[](https://github.com/Siegfriedk)
Comment options
# {{title}}
Something went wrong.
### Uh oh\!
There was an error while loading. [Please reload this page](https://github.com/orgs/community/discussions/60023).
Quote reply
#### [Siegfriedk](https://github.com/Siegfriedk) [Feb 14, 2025](https://github.com/orgs/community/discussions/60023#discussioncomment-12203405)
\-
| |
|---|
| This is not how you revert a git commit and not a good suggestion. This is how you reset the github repository to a previous version. If anyone did something while you are 'resetting' the changes from the other person will disappear. There is a real and proper way to do so: You use git revert <https://git-scm.com/docs/git-revert> |
Beta Was this translation helpful? [Give feedback.](https://github.com/orgs/community/discussions/60023)
π
2
π
1
All reactions
- π
2
- π
1
[](https://github.com/aly-fly)
Comment options
# {{title}}
Something went wrong.
### Uh oh\!
There was an error while loading. [Please reload this page](https://github.com/orgs/community/discussions/60023).
Quote reply
#### [aly-fly](https://github.com/aly-fly) [Feb 17, 2025](https://github.com/orgs/community/discussions/60023#discussioncomment-12221333)
\-
| |
|---|
| This is exactly what I wanted to do - delete all changes without a trace - if you accidentally push a password or other sensitive data, you want to completely wipe it, so that it is not accessible in the history. Without deleting and re-creating the whole repository. |
Beta Was this translation helpful? [Give feedback.](https://github.com/orgs/community/discussions/60023)
π
1
β€οΈ
1
All reactions
- π
1
- β€οΈ
1
[](https://github.com/Sicaine)
Comment options
# {{title}}
Something went wrong.
### Uh oh\!
There was an error while loading. [Please reload this page](https://github.com/orgs/community/discussions/60023).
Quote reply
#### [Sicaine](https://github.com/Sicaine) [Feb 17, 2025](https://github.com/orgs/community/discussions/60023#discussioncomment-12222229)
\-
| |
|---|
| Its just not stated in your comment and the implications of git conflicts (when working with others) was also not mentioned. Nonetheless, secrets/passwords are compromised as soon as you commited them. This only makes sense for sensitive data |
Beta Was this translation helpful? [Give feedback.](https://github.com/orgs/community/discussions/60023)
All reactions
[](https://github.com/Siegfriedk)
### This comment was marked as off-topic.
[Sign in to view](https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Forgs%2Fcommunity%2Fdiscussions%2F60023)
Comment options
# {{title}}
Something went wrong.
### Uh oh\!
There was an error while loading. [Please reload this page](https://github.com/orgs/community/discussions/60023).
Quote reply
edited
# {{editor}}'s edit
{{actor}} deleted this content
.
# {{editor}}'s edit
Something went wrong.
### Uh oh\!
There was an error while loading. [Please reload this page](https://github.com/orgs/community/discussions/60023).
### [ MadeleineMason](https://github.com/MadeleineMason) [Feb 27, 2025](https://github.com/orgs/community/discussions/60023#discussioncomment-12340284)
\-
| |
|---|
| GitHubβs website lacks a revert button, so youβll need to manually restore files, had to do the same on [Pearl Lemon Web](https://pearllemonweb.com/)βs repo once. |
Beta Was this translation helpful? [Give feedback.](https://github.com/orgs/community/discussions/60023)
1
You must be logged in to vote
π
2
All reactions
- π
2
0 replies
Comment options
# {{title}}
Something went wrong.
### Uh oh\!
There was an error while loading. [Please reload this page](https://github.com/orgs/community/discussions/60023).
Quote reply
### [ AMDphreak](https://github.com/AMDphreak) [Mar 7, 2025](https://github.com/orgs/community/discussions/60023#discussioncomment-12421155)
\-
| |
|---|
| This is incredibly stupid. GitHub, why must us simple folk constantly have to teach you what is good UI/UX? |
Beta Was this translation helpful? [Give feedback.](https://github.com/orgs/community/discussions/60023)
7
You must be logged in to vote
π
7
π
1
All reactions
- π
7
- π
1
0 replies
Comment options
# {{title}}
Something went wrong.
### Uh oh\!
There was an error while loading. [Please reload this page](https://github.com/orgs/community/discussions/60023).
Quote reply
### [ DonaldDuck313](https://github.com/DonaldDuck313) [Apr 24, 2025](https://github.com/orgs/community/discussions/60023#discussioncomment-12937645)
\-
| |
|---|
| My use case is that I have a huge repository that takes hours to download and I just want to revert a commit in it. I can't use the terminal for that because then I would have to run git clone which takes hours, so I tried to install GitHub Desktop, but that didn't help because I would have had to clone the repository there also. It seems like the quickest in my case is to just manually copy-paste the old code into a new commit on the website. |
Beta Was this translation helpful? [Give feedback.](https://github.com/orgs/community/discussions/60023)
1
You must be logged in to vote
All reactions
2 replies
[](https://github.com/Sicaine)
Comment options
# {{title}}
Something went wrong.
### Uh oh\!
There was an error while loading. [Please reload this page](https://github.com/orgs/community/discussions/60023).
Quote reply
#### [Sicaine](https://github.com/Sicaine) [May 5, 2025](https://github.com/orgs/community/discussions/60023#discussioncomment-13041566)
\-
| |
|---|
| Besides that i find it also very unfortunate, that GitHub doesn't support it on the UI, you should be able to do a shallow clone (<https://github.blog/open-source/git/get-up-to-speed-with-partial-clone-and-shallow-clone/>) with a small depth size to fix it without having to download a lot. On a side note: If your repository really takes hours to download, you might have some serious issues in your repo. Do you checkin a lot of files? |
Beta Was this translation helpful? [Give feedback.](https://github.com/orgs/community/discussions/60023)
All reactions
[](https://github.com/DonaldDuck313)
Comment options
# {{title}}
Something went wrong.
### Uh oh\!
There was an error while loading. [Please reload this page](https://github.com/orgs/community/discussions/60023).
Quote reply
#### [DonaldDuck313](https://github.com/DonaldDuck313) [May 17, 2025](https://github.com/orgs/community/discussions/60023#discussioncomment-13179707)
\-
| |
|---|
| It's not my repo, it's <https://github.com/DefinitelyTyped/DefinitelyTyped>. They have TypeScript type definitions for most JavaScript libraries so their repo is huge, which is why it's so slow to download. |
Beta Was this translation helpful? [Give feedback.](https://github.com/orgs/community/discussions/60023)
All reactions
Comment options
# {{title}}
Something went wrong.
### Uh oh\!
There was an error while loading. [Please reload this page](https://github.com/orgs/community/discussions/60023).
Quote reply
edited
# {{editor}}'s edit
{{actor}} deleted this content
.
# {{editor}}'s edit
Something went wrong.
### Uh oh\!
There was an error while loading. [Please reload this page](https://github.com/orgs/community/discussions/60023).
### [ levino](https://github.com/levino) [Sep 8, 2025](https://github.com/orgs/community/discussions/60023#discussioncomment-14338652)
\-
| |
|---|
| FWIW: As a workaround, one can use github copilot coding agent and ask it to "revert commit ...". It will create a PR with a revert commit (in most cases, I assume). [](https://private-user-images.githubusercontent.com/1150767/486720075-5413ca59-db39-4901-be25-31ffd407b306.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTc3NTE1MDksIm5iZiI6MTc1Nzc1MTIwOSwicGF0aCI6Ii8xMTUwNzY3LzQ4NjcyMDA3NS01NDEzY2E1OS1kYjM5LTQ5MDEtYmUyNS0zMWZmZDQwN2IzMDYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDkxMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTA5MTNUMDgxMzI5WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZDYyMWRmNDI1NTdlZGRkNzg5MjU1OThiNGIyYzFmNTc1ODFhOGExYjgxZjJkMjM1MTNiNjFiMzRlNjk0ODlkNiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.TcOmp0W26sZhsceqPJfarA0qXqJA1HQvNmKzCdcr__o) I find this actually pretty good. For me it would be a bit overkill to extend the already very cluttered interface of GitHub with such functionality. Also it is often not so easy to revert a commit without encountering conflicts. This is what copilot should be able to solve. The future is now. We need no more buttons. Just tell the agent in plain English what you want to be done. |
Beta Was this translation helpful? [Give feedback.](https://github.com/orgs/community/discussions/60023)
1
You must be logged in to vote
All reactions
0 replies
[Sign up for free](https://github.com/join?source=comment-repo) **to join this conversation on GitHub**. Already have an account? [Sign in to comment](https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Forgs%2Fcommunity%2Fdiscussions%2F60023)
Category
[π¬ General](https://github.com/orgs/community/discussions/categories/general)
Labels
[Question](https://github.com/orgs/community/discussions?discussions_q=label%3AQuestion)
Ask and answer questions about GitHub features and usage
11 participants
[](https://github.com/BtucoGit) [](https://github.com/Sicaine) [](https://github.com/AMDphreak) [](https://github.com/levino) [](https://github.com/dhust) [](https://github.com/Turbulentarius) [](https://github.com/DonaldDuck313) [](https://github.com/Siegfriedk) [](https://github.com/GhostOf0days) [](https://github.com/aly-fly) [](https://github.com/MadeleineMason)
Heading
Bold
Italic
Quote
Code
Link
***
Numbered list
Unordered list
Task list
***
Attach files
Mention
Reference
Menu
- Heading
- Bold
- Italic
- Quote
- Code
- Link
- Numbered list
- Unordered list
- Task list
- Attach files
- Mention
- Reference
# Select a reply
Loading
### Uh oh\!
There was an error while loading. [Please reload this page](https://github.com/orgs/community/discussions/60023).
[Create a new saved reply](https://github.com/settings/replies?return_to=1)
π
1
reacted with thumbs up emoji
π
1
reacted with thumbs down emoji
π
1
reacted with laugh emoji
π
1
reacted with hooray emoji
π
1
reacted with confused emoji
β€οΈ
1
reacted with heart emoji
π
1
reacted with rocket emoji
π
1
reacted with eyes emoji
## Footer
Β© 2025 GitHub, Inc.
### Footer navigation
- [Terms](https://docs.github.com/site-policy/github-terms/github-terms-of-service)
- [Privacy](https://docs.github.com/site-policy/privacy-policies/github-privacy-statement)
- [Security](https://github.com/security)
- [Status](https://www.githubstatus.com/)
- [Docs](https://docs.github.com/)
- [Contact](https://support.github.com/?tags=dotcom-footer)
- Manage cookies
- Do not share my personal information
You canβt perform that action at this time. |
| Readable Markdown | null |
| ML Classification | |
| ML Categories | null |
| ML Page Types | null |
| ML Intent Types | null |
| Content Metadata | |
| Language | en |
| Author | null |
| Publish Time | not set |
| Original Publish Time | 2025-09-13 08:13:27 (7 months ago) |
| Republished | No |
| Word Count (Total) | 3,239 |
| Word Count (Content) | 8 |
| Links | |
| External Links | 10 |
| Internal Links | 98 |
| Technical SEO | |
| Meta Nofollow | No |
| Meta Noarchive | No |
| JS Rendered | No |
| Redirect Target | null |
| Performance | |
| Download Time (ms) | 724 |
| TTFB (ms) | 570 |
| Download Size (bytes) | 70,537 |
| Shard | 174 (laksa) |
| Root Hash | 6325672905007345774 |
| Unparsed URL | com,github!/orgs/community/discussions/60023 s443 |