🕷️ Crawler Inspector

URL Lookup

Direct Parameter Lookup

Raw Queries and Responses

1. Shard Calculation

Query:
Response:
Calculated Shard: 122 (from laksa132)

2. Crawled Status Check

Query:
Response:

3. Robots.txt Check

Query:
Response:

4. Spam/Ban Check

Query:
Response:

5. Seen Status Check

ℹ️ Skipped - page is already crawled

đź“„
INDEXABLE
âś…
CRAWLED
1 month ago
🤖
ROBOTS ALLOWED

Page Info Filters

FilterStatusConditionDetails
HTTP statusPASSdownload_http_code = 200HTTP 200
Age cutoffPASSdownload_stamp > now() - 6 MONTH1.2 months ago
History dropPASSisNull(history_drop_reason)No drop reason
Spam/banPASSfh_dont_index != 1 AND ml_spam_score = 0ml_spam_score=0
CanonicalPASSmeta_canonical IS NULL OR = '' OR = src_unparsedNot set

Page Details

PropertyValue
URLhttps://superuser.com/questions/523963/how-can-i-revert-back-to-a-git-commit
Last Crawled2026-03-02 21:00:49 (1 month ago)
First Indexed2017-02-09 06:29:11 (9 years ago)
HTTP Status Code200
Meta TitleHow can I revert back to a Git commit? - Super User
Meta Descriptionnull
Meta Canonicalnull
Boilerpipe Text
This question shows research effort; it is useful and clear 23 Save this question. Show activity on this post. I just started using Git on Windows and I have a small question. When I say git commit along with a message I realize that git commits the file. But where exactly does it store the commited file? Let's say I make some changes and want to revert back to my third commit using Git GUI. How exactly do I do that? slhck 237k 73 gold badges 639 silver badges 611 bronze badges asked Dec 25, 2012 at 9:18 1 This answer is useful 6 Save this answer. Show activity on this post. Git commit only saves it to the stage, which is locally on your computer. Use Push to update it to a remote server (Like github). Use git revert <ID> to revert back to a previous commit. each commit has an identifying code. See here for more details on revert answered Dec 25, 2012 at 9:35 2 This answer is useful 60 Save this answer. Show activity on this post. The above answer is not quite correct - git revert <ID> does not set your repository to that commit -- git revert <ID> creates a new commit that undoes the changes introduced by commit <ID> . It's more or less a way to 'undo' a commit and save that undo in your history as a new commit. If you want to set your branch to the state of a particular commit (as implied by the OP), you can use git reset <commit> , or git reset --hard <commit> The first option only updates the INDEX, leaving files in your working directory unchanged as if you had made the edits but not yet committed them. With the --hard option, it replaces the contents of your working directory with what was on <commit> . A note of warning that git reset will alter history -- if I made several commits and then reset to the first commit, the subsequent commits will no longer be in the commit history. This can cause some serious headaches if any of those lost commits have been pushed to a public repository. Make sure you only use it to get rid of commits that haven't been pushed to another repository! answered Aug 11, 2014 at 15:18 6 This answer is useful 2 Save this answer. Show activity on this post. This allows reverting all commits between the current HEAD of your branch and a specific commit: git revert --no-commit <commit_id>..HEAD then git commit -m <your_commit_message> This is non-destructive, meaning that the reverted commits are preserved in the git history (you can still checkout to them and even de-revert them). answered Oct 21, 2025 at 23:53 This answer is useful 0 Save this answer. Show activity on this post. A simple way to do it is to reset to the last good commit. There will also be no mention of this "revert". The last good commit will be the head. git push -f origin last_good_commit_hash:name_branch_that_you_are_edit As example if: name_branch_that_you_are_edit = master and last_good_commit_hash = 150e73abb4344fsde499e98880b0bc96fdca4398, then the command will be: git push -f origin 150e73abb4344fsde499e98880b0bc96fdca4398:master answered Jan 6, 2022 at 14:36 This answer is useful 0 Save this answer. Show activity on this post. to answer your 1st question: after you run the commit command the file gets saved on your hard disk a s a normal file, but git also saves the diff of the change in the .git folder in the repository and assigns a hash to that change. That is the way git keeps track of your changes (and you can check it with the log command, or in the GUI tree view of the history, not sure how its called since i dont use GUI for git) regarding the part where you asked to get back to a older state there are 2 ways: revert : creates a new commit which is basically the opposite diff of the one created by the commit you are reverting (you'll see it in the automatic commit message). this means you create a new node in the commit tree, i.e. you have not changed the history of the project but added to it => when you perform git push all is good reset : you will move the state of your repository history back in time and possibly lose all the changes that were made on top of that. i.e. you are changing the history of the project => when you perform git push you need to use the --force / -f flag. this is DANGEROUS operation so be careful if you use it, you can change the state for other users of the repo. now for the GUI question you had, you can prob right click on the commit you want to get back to ( reset ) or remove the changes that one commit made ( revert ) by right clicking a commit in the history tree or maybe theres a button to do it. the main thing is to understand the difference between revert and reset . answered Jan 6, 2022 at 15:57 This answer is useful 0 Save this answer. Show activity on this post. You can use this command to reset the particular commit: git reset <commit id> answered Jun 7, 2021 at 12:53 You must log in to answer this question. Start asking to get answers Find the answer to your question by asking. Ask question Explore related questions See similar questions with these tags.
Markdown
# ![site logo](https://stackoverflow.com/Content/Img/SE-logo75.png) By clicking “Sign up”, you agree to our [terms of service](https://superuser.com/legal/terms-of-service/public) and acknowledge you have read our [privacy policy](https://superuser.com/legal/privacy-policy). # OR Already have an account? [Log in](https://superuser.com/users/login) [Skip to main content](https://superuser.com/questions/523963/how-can-i-revert-back-to-a-git-commit#content) #### Stack Exchange Network Stack Exchange network consists of 183 Q\&A communities including [Stack Overflow](https://stackoverflow.com/), the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. [Visit Stack Exchange](https://stackexchange.com/) 1. - [Tour Start here for a quick overview of the site](https://superuser.com/tour) - [Help Center Detailed answers to any questions you might have](https://superuser.com/help) - [Meta Discuss the workings and policies of this site](https://meta.superuser.com/) - [About Us Learn more about Stack Overflow the company, and our products](https://stackoverflow.co/) 2. ### [current community](https://superuser.com/) - [Super User](https://superuser.com/) [help](https://superuser.com/help) [chat](https://chat.stackexchange.com/?tab=all&sort=active) - [Meta Super User](https://meta.superuser.com/) ### your communities [Sign up](https://superuser.com/users/signup?ssrc=site_switcher&returnurl=https%3A%2F%2Fsuperuser.com%2Fquestions%2F523963%2Fhow-can-i-revert-back-to-a-git-commit) or [log in](https://superuser.com/users/login?ssrc=site_switcher&returnurl=https%3A%2F%2Fsuperuser.com%2Fquestions%2F523963%2Fhow-can-i-revert-back-to-a-git-commit) to customize your list. ### [more stack exchange communities](https://stackexchange.com/sites) [company blog](https://stackoverflow.blog/) 3. [Log in](https://superuser.com/users/login?ssrc=head&returnurl=https%3A%2F%2Fsuperuser.com%2Fquestions%2F523963%2Fhow-can-i-revert-back-to-a-git-commit) 4. [Sign up](https://superuser.com/users/signup?ssrc=head&returnurl=https%3A%2F%2Fsuperuser.com%2Fquestions%2F523963%2Fhow-can-i-revert-back-to-a-git-commit) [![Super User](https://superuser.com/Content/Sites/superuser/Img/logo.svg?v=4bc8a703ebac)](https://superuser.com/) 1. 1. [Home](https://superuser.com/) 2. [Questions](https://superuser.com/questions) 3. [Unanswered](https://superuser.com/unanswered) 4. [AI Assist](https://stackoverflow.com/ai-assist) 5. [Tags](https://superuser.com/tags) 6. [Chat](https://chat.stackexchange.com/rooms/158962/stack-exchange-lobby) 7. [Users](https://superuser.com/users) 8. [Companies](https://stackoverflow.com/jobs/companies?so_medium=superuser&so_source=SiteNav) 2. Stack Internal Stack Overflow for Teams is now called **Stack Internal**. Bring the best of human thought and AI automation together at your work. [Try for free](https://stackoverflowteams.com/teams/create/free/?utm_medium=referral&utm_source=superuser-community&utm_campaign=side-bar&utm_content=explore-teams) [Learn more](https://stackoverflow.co/internal/?utm_medium=referral&utm_source=superuser-community&utm_campaign=side-bar&utm_content=explore-teams) 3. [Stack Internal]() 4. Bring the best of human thought and AI automation together at your work. [Learn more](https://stackoverflow.co/internal/?utm_medium=referral&utm_source=superuser-community&utm_campaign=side-bar&utm_content=explore-teams-compact) **Stack Internal** Knowledge at work Bring the best of human thought and AI automation together at your work. [Explore Stack Internal](https://stackoverflow.co/internal/?utm_medium=referral&utm_source=superuser-community&utm_campaign=side-bar&utm_content=explore-teams-compact-popover) # [How can I revert back to a Git commit?](https://superuser.com/questions/523963/how-can-i-revert-back-to-a-git-commit) [Ask Question](https://superuser.com/questions/ask) Asked 13 years ago Modified [2 months ago](https://superuser.com/questions/523963/how-can-i-revert-back-to-a-git-commit?lastactivity "2025-10-22 00:00:40Z") Viewed 268k times This question shows research effort; it is useful and clear 23 Save this question. Show activity on this post. I just started using Git on Windows and I have a small question. When I say `git commit` along with a message I realize that git commits the file. But where exactly does it store the commited file? Let's say I make some changes and want to revert back to my third commit using Git GUI. How exactly do I do that? - [git](https://superuser.com/questions/tagged/git "show questions tagged 'git'") [Share](https://superuser.com/q/523963 "Short permalink to this question") Share a link to this question Copy link [CC BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/ "The current license for this post: CC BY-SA 3.0") [Improve this question](https://superuser.com/posts/523963/edit) Follow Follow this question to receive notifications [edited Dec 25, 2012 at 10:01](https://superuser.com/posts/523963/revisions "show all edits to this post") [![slhck's user avatar](https://i.sstatic.net/jyNn1.png?s=64)](https://superuser.com/users/48078/slhck) [slhck](https://superuser.com/users/48078/slhck) 237k7373 gold badges639639 silver badges611611 bronze badges asked Dec 25, 2012 at 9:18 [![Sab's user avatar](https://www.gravatar.com/avatar/e281285822c9e8ebcc6530749a30f186?s=64&d=identicon&r=PG&f=y&so-version=2)](https://superuser.com/users/173311/sab) [Sab](https://superuser.com/users/173311/sab) 72744 gold badges88 silver badges1717 bronze badges 1 - The point of Git is that you don't need to know how Git is storing the backups and history. Git handles all of that for you Kellen Stuart – [Kellen Stuart](https://superuser.com/users/503444/kellen-stuart "628 reputation") 2018-10-04 15:05:04 +00:00 [Commented Oct 4, 2018 at 15:05](https://superuser.com/questions/523963/how-can-i-revert-back-to-a-git-commit#comment2050331_523963) [Add a comment](https://superuser.com/questions/523963/how-can-i-revert-back-to-a-git-commit "Use comments to ask for more information or suggest improvements. Avoid answering questions in comments.") \| ## 6 Answers 6 Sorted by: [Reset to default](https://superuser.com/questions/523963/how-can-i-revert-back-to-a-git-commit?answertab=scoredesc#tab-top) This answer is useful 6 Save this answer. Show activity on this post. Git commit only saves it to the stage, which is locally on your computer. Use Push to update it to a remote server (Like github). Use `git revert <ID>` to revert back to a previous commit. each commit has an identifying code. See [here](http://christoph.ruegg.name/blog/2010/5/5/git-howto-revert-a-commit-already-pushed-to-a-remote-reposit.html) for more details on revert [Share](https://superuser.com/a/523968 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/ "The current license for this post: CC BY-SA 3.0") [Improve this answer](https://superuser.com/posts/523968/edit) Follow Follow this answer to receive notifications answered Dec 25, 2012 at 9:35 [![Darcys22's user avatar](https://www.gravatar.com/avatar/eb2c3285dee1bc1a83e826e45e390f81?s=64&d=identicon&r=PG)](https://superuser.com/users/182491/darcys22) [Darcys22](https://superuser.com/users/182491/darcys22) 25622 silver badges33 bronze badges 2 - 18 wrong answer. this only reverts this specific commit. Jeff P Chacko – [Jeff P Chacko](https://superuser.com/users/1124369/jeff-p-chacko "101 reputation") 2020-03-04 13:37:37 +00:00 [Commented Mar 4, 2020 at 13:37](https://superuser.com/questions/523963/how-can-i-revert-back-to-a-git-commit#comment2320952_523968) - Yeah, this is wrong and misleading, and it can cause unexpected merge conflicts when there shouldn't be any conflict if you just want to go back to it was at X Nick T – [Nick T](https://superuser.com/users/18931/nick-t "2,817 reputation") 2024-07-10 14:42:25 +00:00 [Commented Jul 10, 2024 at 14:42](https://superuser.com/questions/523963/how-can-i-revert-back-to-a-git-commit#comment2927065_523968) [Add a comment](https://superuser.com/questions/523963/how-can-i-revert-back-to-a-git-commit "Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.") \| This answer is useful 60 Save this answer. Show activity on this post. The above answer is not quite correct - `git revert <ID>` does not set your repository to that commit -- `git revert <ID>` creates a new commit that undoes the changes introduced by commit `<ID>`. It's more or less a way to 'undo' a commit and save that undo in your history as a new commit. If you want to set your branch to the state of a particular commit (as implied by the OP), you can use `git reset <commit>`, or `git reset --hard <commit>` The first option only updates the INDEX, leaving files in your working directory unchanged as if you had made the edits but not yet committed them. With the --hard option, it replaces the contents of your working directory with what was on `<commit>`. A note of warning that `git reset` will alter history -- if I made several commits and then reset to the first commit, the subsequent commits will no longer be in the commit history. This can cause some serious headaches if any of those lost commits have been pushed to a public repository. Make sure you only use it to get rid of commits that haven't been pushed to another repository\! [Share](https://superuser.com/a/795447 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/ "The current license for this post: CC BY-SA 3.0") [Improve this answer](https://superuser.com/posts/795447/edit) Follow Follow this answer to receive notifications [edited Oct 1, 2014 at 13:31](https://superuser.com/posts/795447/revisions "show all edits to this post") answered Aug 11, 2014 at 15:18 [![wandrewni's user avatar](https://www.gravatar.com/avatar/e02fa9c5ff26e7e14ef9a95da28e0b3d?s=64&d=identicon&r=PG)](https://superuser.com/users/355682/wandrewni) [wandrewni](https://superuser.com/users/355682/wandrewni) 70111 gold badge55 silver badges44 bronze badges 6 - after I reset how do I commit `Your branch is behind 'origin/master' by 1 commit, and can be fast-forwarded.` Omar – [Omar](https://superuser.com/users/738236/omar "101 reputation") 2018-01-24 16:58:00 +00:00 [Commented Jan 24, 2018 at 16:58](https://superuser.com/questions/523963/how-can-i-revert-back-to-a-git-commit#comment1907258_795447) - since we change our code to older commit, in order to push it we should force push it with this command git push -f origin \<branch\_name\>. Otherwise git will always prompt you to take the pull first and then push. Gaurav Rajdeo – [Gaurav Rajdeo](https://superuser.com/users/957002/gaurav-rajdeo "101 reputation") 2018-10-24 10:03:13 +00:00 [Commented Oct 24, 2018 at 10:03](https://superuser.com/questions/523963/how-can-i-revert-back-to-a-git-commit#comment2061082_795447) - 2 git push -f is NEVER a good thing to do \! MikeW – [MikeW](https://superuser.com/users/173412/mikew "148 reputation") 2019-06-27 13:07:27 +00:00 [Commented Jun 27, 2019 at 13:07](https://superuser.com/questions/523963/how-can-i-revert-back-to-a-git-commit#comment2192660_795447) - 3 I disagree, @MikeW. `git push --force` is completely unproblematic if you're working in solo on a branch and want its history to be tidy and sensible, for instance as work on a pull request against a forked repository. It's also unproblematic if you have tight coordination with people you cooperate with, they just need to force-pull your changes before they continue work on their side. Asbjørn Ulsberg – [Asbjørn Ulsberg](https://superuser.com/users/17390/asbj%C3%B8rn-ulsberg "299 reputation") 2021-09-28 10:05:19 +00:00 [Commented Sep 28, 2021 at 10:05](https://superuser.com/questions/523963/how-can-i-revert-back-to-a-git-commit#comment2576313_795447) - Could you revert to commit id - 1 ? say a commit introduced a problem, so you want to go back to the commit before it? majorgear – [majorgear](https://superuser.com/users/342766/majorgear "139 reputation") 2025-04-09 14:56:15 +00:00 [Commented Apr 9, 2025 at 14:56](https://superuser.com/questions/523963/how-can-i-revert-back-to-a-git-commit#comment2982252_795447) \| [Show **1** more comment](https://superuser.com/questions/523963/how-can-i-revert-back-to-a-git-commit "Expand to show all comments on this post") This answer is useful 2 Save this answer. Show activity on this post. This allows reverting all commits between the current HEAD of your branch and a specific commit: `git revert --no-commit <commit_id>..HEAD` then `git commit -m <your_commit_message>` This is non-destructive, meaning that the reverted commits are preserved in the git history (you can still checkout to them and even de-revert them). [Share](https://superuser.com/a/1927055 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/ "The current license for this post: CC BY-SA 4.0") [Improve this answer](https://superuser.com/posts/1927055/edit) Follow Follow this answer to receive notifications [edited Oct 22, 2025 at 0:00](https://superuser.com/posts/1927055/revisions "show all edits to this post") answered Oct 21, 2025 at 23:53 [![lfarroco's user avatar](https://i.sstatic.net/rDKyo.jpg?s=64)](https://superuser.com/users/1721269/lfarroco) [lfarroco](https://superuser.com/users/1721269/lfarroco) 12144 bronze badges [Add a comment](https://superuser.com/questions/523963/how-can-i-revert-back-to-a-git-commit "Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.") \| This answer is useful 0 Save this answer. Show activity on this post. A simple way to do it is to reset to the last good commit. There will also be no mention of this "revert". The last good commit will be the head. > git push -f origin last\_good\_commit\_hash:name\_branch\_that\_you\_are\_edit As example if: name\_branch\_that\_you\_are\_edit = master and last\_good\_commit\_hash = 150e73abb4344fsde499e98880b0bc96fdca4398, then the command will be: > git push -f origin 150e73abb4344fsde499e98880b0bc96fdca4398:master [Share](https://superuser.com/a/1697814 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/ "The current license for this post: CC BY-SA 4.0") [Improve this answer](https://superuser.com/posts/1697814/edit) Follow Follow this answer to receive notifications answered Jan 6, 2022 at 14:36 [![A. El Idrissi's user avatar](https://www.gravatar.com/avatar/c316fb31fd4b126ad2d8f3091fb04c1a?s=64&d=identicon&r=PG)](https://superuser.com/users/742352/a-el-idrissi) [A. El Idrissi](https://superuser.com/users/742352/a-el-idrissi) 10111 bronze badge [Add a comment](https://superuser.com/questions/523963/how-can-i-revert-back-to-a-git-commit "Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.") \| This answer is useful 0 Save this answer. Show activity on this post. to answer your 1st question: after you run the `commit` command the file gets saved on your hard disk a s a normal file, but `git` also saves the diff of the change in the .git folder in the repository and assigns a hash to that change. That is the way git keeps track of your changes (and you can check it with the `log` command, or in the GUI tree view of the history, not sure how its called since i dont use GUI for git) regarding the part where you asked to get back to a older state there are 2 ways: - `revert`: creates a new commit which is basically the opposite diff of the one created by the commit you are reverting (you'll see it in the automatic commit message). this means you create a new node in the commit tree, i.e. you have not changed the history of the project but added to it =\> when you perform `git push` all is good - `reset`: you will move the state of your repository history back in time and possibly lose all the changes that were made on top of that. i.e. you are changing the history of the project =\> when you perform `git push` you need to use the `--force`/`-f` flag. this is DANGEROUS operation so be careful if you use it, you can change the state for other users of the repo. now for the GUI question you had, you can prob right click on the commit you want to get back to (`reset`) or remove the changes that one commit made (`revert`) by right clicking a commit in the history tree or maybe theres a button to do it. the main thing is to understand the difference between `revert` and `reset`. [Share](https://superuser.com/a/1697832 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/ "The current license for this post: CC BY-SA 4.0") [Improve this answer](https://superuser.com/posts/1697832/edit) Follow Follow this answer to receive notifications answered Jan 6, 2022 at 15:57 [![mstojano's user avatar](https://www.gravatar.com/avatar/f2cc559ce70065e09d56374255c7479d?s=64&d=identicon&r=PG)](https://superuser.com/users/1656740/mstojano) [mstojano](https://superuser.com/users/1656740/mstojano) 122 bronze badges [Add a comment](https://superuser.com/questions/523963/how-can-i-revert-back-to-a-git-commit "Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.") \| This answer is useful 0 Save this answer. Show activity on this post. You can use this command to reset the particular commit: ``` git reset <commit id> ``` [Share](https://superuser.com/a/1655239 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/ "The current license for this post: CC BY-SA 4.0") [Improve this answer](https://superuser.com/posts/1655239/edit) Follow Follow this answer to receive notifications [edited Oct 4, 2024 at 11:28](https://superuser.com/posts/1655239/revisions "show all edits to this post") [![DannyDannyDanny's user avatar](https://www.gravatar.com/avatar/81f0ad17521ee71f9ec2860319c9b4c0?s=64&d=identicon&r=PG&f=y&so-version=2)](https://superuser.com/users/531229/dannydannydanny) [DannyDannyDanny](https://superuser.com/users/531229/dannydannydanny) 10988 bronze badges answered Jun 7, 2021 at 12:53 [![Ihtisham Tanveer's user avatar](https://graph.facebook.com/1861390790764591/picture?type=large)](https://superuser.com/users/1408077/ihtisham-tanveer) [Ihtisham Tanveer](https://superuser.com/users/1408077/ihtisham-tanveer) 10111 bronze badge [Add a comment](https://superuser.com/questions/523963/how-can-i-revert-back-to-a-git-commit "Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.") \| ## You must [log in](https://superuser.com/users/login?ssrc=question_page&returnurl=https%3A%2F%2Fsuperuser.com%2Fquestions%2F523963) to answer this question. Start asking to get answers Find the answer to your question by asking. [Ask question](https://superuser.com/questions/ask) Explore related questions - [git](https://superuser.com/questions/tagged/git "show questions tagged 'git'") See similar questions with these tags. - The Overflow Blog - [How Stack Overflow is taking on spam and bad actors](https://stackoverflow.blog/2026/01/15/how-stack-overflow-is-taking-on-spam-and-bad-actors/?cb=1) - [How AWS re:Invented the cloud](https://stackoverflow.blog/2026/01/16/how-aws-re-invented-the-cloud/?cb=1) - Featured on Meta - [Community Asks Sprint Announcement – January 2026: Custom site-specific badges\!](https://meta.stackexchange.com/questions/416734/community-asks-sprint-announcement-january-2026-custom-site-specific-badges?cb=1) #### Related [0](https://superuser.com/questions/374673/run-astyle-on-all-files-before-git-commit?rq=1 "Question score (upvotes - downvotes)") [run astyle on all files before git-commit](https://superuser.com/questions/374673/run-astyle-on-all-files-before-git-commit?rq=1) [0](https://superuser.com/questions/398878/git-commit-reset-vim-error-state?rq=1 "Question score (upvotes - downvotes)") [Git commit: reset Vim error state](https://superuser.com/questions/398878/git-commit-reset-vim-error-state?rq=1) [9](https://superuser.com/questions/627396/how-do-i-add-a-parent-commit-before-all-other-commits-in-git?rq=1 "Question score (upvotes - downvotes)") [How do I add a parent commit before all other commits in Git?](https://superuser.com/questions/627396/how-do-i-add-a-parent-commit-before-all-other-commits-in-git?rq=1) [10](https://superuser.com/questions/768826/how-to-commit-files-modified-by-pre-commit-hook-in-git?rq=1 "Question score (upvotes - downvotes)") [How to commit files modified by pre-commit hook in Git](https://superuser.com/questions/768826/how-to-commit-files-modified-by-pre-commit-hook-in-git?rq=1) [0](https://superuser.com/questions/956402/extract-a-specific-revision-of-the-git-repository?rq=1 "Question score (upvotes - downvotes)") [extract a specific revision of the git repository](https://superuser.com/questions/956402/extract-a-specific-revision-of-the-git-repository?rq=1) [0](https://superuser.com/questions/1135686/how-to-get-svns-revert-behaviour-in-git?rq=1 "Question score (upvotes - downvotes)") [How to get SVN's revert behaviour in Git](https://superuser.com/questions/1135686/how-to-get-svns-revert-behaviour-in-git?rq=1) [2](https://superuser.com/questions/1393252/git-partial-commit-of-changes?rq=1 "Question score (upvotes - downvotes)") [Git partial commit of changes](https://superuser.com/questions/1393252/git-partial-commit-of-changes?rq=1) [0](https://superuser.com/questions/1404800/tortoise-git-commit-lost?rq=1 "Question score (upvotes - downvotes)") [Tortoise Git Commit Lost](https://superuser.com/questions/1404800/tortoise-git-commit-lost?rq=1) [0](https://superuser.com/questions/1842417/my-git-history-all-of-my-commits-have-no-message?rq=1 "Question score (upvotes - downvotes)") [My git history all of my commits have no message](https://superuser.com/questions/1842417/my-git-history-all-of-my-commits-have-no-message?rq=1) #### [Hot Network Questions](https://stackexchange.com/questions?tab=hot) - [Are U.S. federal officials required to identify themselves when entering a fenced area of a home to make an arrest?](https://law.stackexchange.com/questions/113954/are-u-s-federal-officials-required-to-identify-themselves-when-entering-a-fence) - [Term for Voltage Regulator which absorbs downstream spikes?](https://electronics.stackexchange.com/questions/764542/term-for-voltage-regulator-which-absorbs-downstream-spikes) - [Should I bring up a shared hobby in a faculty screening interview?](https://academia.stackexchange.com/questions/225654/should-i-bring-up-a-shared-hobby-in-a-faculty-screening-interview) - [Russian/Soviet SF short story from the 1970s — beautiful protagonist turns out to be alien, ends with line about “Disney brothers”](https://scifi.stackexchange.com/questions/302894/russian-soviet-sf-short-story-from-the-1970s-beautiful-protagonist-turns-out-t) - [Why does GCC's linker ignore some shared libraries, but accepts other ones, all in the same directory?](https://unix.stackexchange.com/questions/803822/why-does-gccs-linker-ignore-some-shared-libraries-but-accepts-other-ones-all) - [Weird summation](https://math.stackexchange.com/questions/5120259/weird-summation) - [Difference between BJT and FET current mirror](https://electronics.stackexchange.com/questions/764526/difference-between-bjt-and-fet-current-mirror) - [What is the point of this capacitor in this op-amp circuit?](https://electronics.stackexchange.com/questions/764561/what-is-the-point-of-this-capacitor-in-this-op-amp-circuit) - [What do the three stars and X mean in Unit Stats?](https://gaming.stackexchange.com/questions/417633/what-do-the-three-stars-and-x-mean-in-unit-stats) - [Subdegrees of affine primitive permutation groups](https://mathoverflow.net/questions/507143/subdegrees-of-affine-primitive-permutation-groups) - [If stopped working midyear, should I still check 'still work at \<previous employer\>' when filing tax?](https://money.stackexchange.com/questions/169184/if-stopped-working-midyear-should-i-still-check-still-work-at-previous-employ) - [Replace atom in large protein structure](https://mathematica.stackexchange.com/questions/318486/replace-atom-in-large-protein-structure) - [Using self-translated foreign text possibly out of copyright?](https://writing.stackexchange.com/questions/72142/using-self-translated-foreign-text-possibly-out-of-copyright) - [Why does is.na(NULL) returns logical(0) and not FALSE?](https://stackoverflow.com/questions/79869850/why-does-is-nanull-returns-logical0-and-not-false) - [How can an antenna that is only 1 m long receive AM radio with a wavelength of 281 meters?](https://electronics.stackexchange.com/questions/764552/how-can-an-antenna-that-is-only-1-m-long-receive-am-radio-with-a-wavelength-of-2) - [Precise meaning of "picking a basis"?](https://mathoverflow.net/questions/507049/precise-meaning-of-picking-a-basis) - [Can we find texts which state as true: "If you keep reading a stotra in Sanskrit with great concentration, you will suddenly get the meaning of it"?](https://hinduism.stackexchange.com/questions/69425/can-we-find-texts-which-state-as-true-if-you-keep-reading-a-stotra-in-sanskrit) - [Alternative symbol (curlyvee) with arrow](https://tex.stackexchange.com/questions/758424/alternative-symbol-curlyvee-with-arrow) - [Why is the Stadium choice sometimes skipped in City Trial?](https://gaming.stackexchange.com/questions/417639/why-is-the-stadium-choice-sometimes-skipped-in-city-trial) - [What are the most engaging consequences of the Intermediate Value Theorem?](https://math.stackexchange.com/questions/5120168/what-are-the-most-engaging-consequences-of-the-intermediate-value-theorem) - [How do 'sudo' permission bits influence (e)uid and (e)gid?](https://unix.stackexchange.com/questions/803817/how-do-sudo-permission-bits-influence-euid-and-egid) - [What's the difference between the Fourteenth Amendment and the Fifth Amendment?](https://law.stackexchange.com/questions/113938/whats-the-difference-between-the-fourteenth-amendment-and-the-fifth-amendment) - [What causes a shock absorber to wear out?](https://mechanics.stackexchange.com/questions/101881/what-causes-a-shock-absorber-to-wear-out) - [Understanding the Atari 1010 Cassette Recorder](https://retrocomputing.stackexchange.com/questions/32401/understanding-the-atari-1010-cassette-recorder) [Question feed](https://superuser.com/feeds/question/523963 "Feed of this question and its answers") # Subscribe to RSS Question feed To subscribe to this RSS feed, copy and paste this URL into your RSS reader. ![](https://superuser.com/posts/523963/ivc/8165?prg=39138de3-10db-47b3-9966-4e42f82b34b8) # Why are you flagging this comment? It contains harassment, bigotry or abuse. This comment attacks a person or group. Learn more in our [Abusive behavior policy](https://superuser.com/conduct/abusive-behavior). It's unfriendly or unkind. This comment is rude or condescending. Learn more in our [Code of Conduct](https://superuser.com/conduct/abusive-behavior). Not needed. This comment is not relevant to the post. ``` ``` Enter at least 6 characters Something else. A problem not listed above. Try to be as specific as possible. ``` ``` Enter at least 6 characters Flag comment Cancel You have 0 flags left today # ![Illustration of upvote icon after it is clicked](https://superuser.com/Content/Img/modal/img-upvote.png?v=fce73bd9724d) # Hang on, you can't upvote just yet. You'll need to complete a few actions and gain 15 reputation points before being able to upvote. **Upvoting** indicates when questions and answers are useful. [What's reputation and how do I get it?](https://stackoverflow.com/help/whats-reputation) Instead, you can save this post to reference later. Save this post for later Not now ##### [Super User](https://superuser.com/) - [Tour](https://superuser.com/tour) - [Help](https://superuser.com/help) - [Chat](https://chat.stackexchange.com/?tab=all&sort=active) - [Contact](https://superuser.com/contact) - [Feedback](https://meta.superuser.com/) ##### [Company](https://stackoverflow.co/) - [Stack Overflow](https://stackoverflow.com/) - [Stack Internal](https://stackoverflow.co/internal/) - [Stack Data Licensing](https://stackoverflow.co/data-licensing/) - [Stack Ads](https://stackoverflow.co/advertising/) - [About](https://stackoverflow.co/) - [Press](https://stackoverflow.co/company/press/) - [Legal](https://stackoverflow.com/legal) - [Privacy Policy](https://stackoverflow.com/legal/privacy-policy) - [Terms of Service](https://stackoverflow.com/legal/terms-of-service/public) - Cookie Settings - [Cookie Policy](https://policies.stackoverflow.co/stack-overflow/cookie-policy) ##### [Stack Exchange Network](https://stackexchange.com/) - [Technology](https://stackexchange.com/sites#technology) - [Culture & recreation](https://stackexchange.com/sites#culturerecreation) - [Life & arts](https://stackexchange.com/sites#lifearts) - [Science](https://stackexchange.com/sites#science) - [Professional](https://stackexchange.com/sites#professional) - [Business](https://stackexchange.com/sites#business) - [API](https://api.stackexchange.com/) - [Data](https://data.stackexchange.com/) - [Blog](https://stackoverflow.blog/?blb=1) - [Facebook](https://www.facebook.com/officialstackoverflow/) - [Twitter](https://twitter.com/stackoverflow) - [LinkedIn](https://linkedin.com/company/stack-overflow) - [Instagram](https://www.instagram.com/thestackoverflow) Site design / logo © 2026 Stack Exchange Inc; user contributions licensed under [CC BY-SA](https://stackoverflow.com/help/licensing) . rev 2026.1.14.38635
Readable Markdownnull
Shard122 (laksa)
Root Hash3131140398176769522
Unparsed URLcom,superuser!/questions/523963/how-can-i-revert-back-to-a-git-commit s443