{"thread":{"id":"23648","subject":"How to revert 'git reset' command","startedAt":"2010-05-01T05:48:38Z","lastAt":"2010-05-01T17:19:10Z","messageCount":3,"participants":["paragkalra","Peter Vereshagin","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"140673","messageId":"1272692918690-4989146.post@n2.nabble.com","threadId":"23648","inReplyTo":null,"subject":"How to revert 'git reset' command","fromName":"paragkalra","fromEmail":"paragkalra@gmail.com","sentAt":"2010-05-01T05:48:38Z","receivedAt":"2010-05-01T05:48:38Z","isPatch":false,"sender":{"key":"paragkalra@gmail.com","avatar":null},"body":"\nHi All,\n\nI have just started learning - Git. Today while exploring Git, I executed\nfollowing:\n\ngit reset\n\nNow 'git status' is showing some files under - 'Unstaged changes after\nreset:'\n\nHow can I revert back the effect of - 'git reset'\n\nCheers,\nParag\n\n-- \nView this message in context: http://git.661346.n2.nabble.com/How-to-revert-git-reset-command-tp4989146p4989146.html\nSent from the git mailing list archive at Nabble.com.\n"},{"id":"140674","messageId":"20100501064114.GA5643@screwed.box","threadId":"23648","inReplyTo":"1272692918690-4989146.post@n2.nabble.com","subject":"Re: How to revert 'git reset' command","fromName":"Peter Vereshagin","fromEmail":"peter@vereshagin.org","sentAt":"2010-05-01T06:41:14Z","receivedAt":"2010-05-01T06:41:14Z","isPatch":false,"sender":{"key":"peter@vereshagin.org","avatar":"https://gravatar.com/avatar/27a92b8c80743df8621433ca040657c4ac37a78497228d04f703e70731c5f30b?d=mp&s=160"},"body":"Como esta, paragkalra?\n\nYou may want to try to make a new commit:\n\ngit commit -a\n\nAnother way is to rerpair your Git history from your remote repository, if one exists\n\n2010/04/30 22:48:38 -0700 paragkalra <paragkalra@gmail.com> => To git@vger.kernel.org :\np> I have just started learning - Git. Today while exploring Git, I executed\np> following:\np> \np> git reset\np> \np> Now 'git status' is showing some files under - 'Unstaged changes after\np> reset:'\np> \np> How can I revert back the effect of - 'git reset'\np> \n73! Peter pgp: A0E26627 (4A42 6841 2871 5EA7 52AB  12F8 0CE1 4AAC A0E2 6627)\n-- \nhttp://vereshagin.org\n"},{"id":"140694","messageId":"7v63375ylt.fsf@alter.siamese.dyndns.org","threadId":"23648","inReplyTo":"20100501064114.GA5643@screwed.box","subject":"Re: How to revert 'git reset' command","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2010-05-01T17:19:10Z","receivedAt":"2010-05-01T17:19:10Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Peter Vereshagin <peter@vereshagin.org> writes:\n\n> 2010/04/30 22:48:38 -0700 paragkalra <paragkalra@gmail.com> => To git@vger.kernel.org :\n> p> I have just started learning - Git. Today while exploring Git, I executed\n> p> following:\n> p> \n> p> git reset\n> p> \n> p> Now 'git status' is showing some files under - 'Unstaged changes after\n> p> reset:'\n> p> \n> p> How can I revert back the effect of - 'git reset'\n> p> \n> You may want to try to make a new commit:\n>\n> git commit -a\n>\n> Another way is to rerpair your Git history from your remote repository, if one exists\n\nIf \"git reset\" was run without any other options nor arguments (which\nparagkalra seems to have done), there is no damage in the git history that\nneeds to be repaired.  \"git reset\" by default only resets the index to\nmatch the commit that is checked out.  All that is lost is \"git add\" done\nsince that commit.\n"}]}