* How to revert 'git reset' command
@ 2010-05-01 5:48 paragkalra
2010-05-01 6:41 ` Peter Vereshagin
0 siblings, 1 reply; 3+ messages in thread
From: paragkalra @ 2010-05-01 5:48 UTC (permalink / raw)
To: git
Hi All,
I have just started learning - Git. Today while exploring Git, I executed
following:
git reset
Now 'git status' is showing some files under - 'Unstaged changes after
reset:'
How can I revert back the effect of - 'git reset'
Cheers,
Parag
--
View this message in context: http://git.661346.n2.nabble.com/How-to-revert-git-reset-command-tp4989146p4989146.html
Sent from the git mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to revert 'git reset' command
2010-05-01 5:48 How to revert 'git reset' command paragkalra
@ 2010-05-01 6:41 ` Peter Vereshagin
2010-05-01 17:19 ` Junio C Hamano
0 siblings, 1 reply; 3+ messages in thread
From: Peter Vereshagin @ 2010-05-01 6:41 UTC (permalink / raw)
To: paragkalra; +Cc: git
Como esta, paragkalra?
You may want to try to make a new commit:
git commit -a
Another way is to rerpair your Git history from your remote repository, if one exists
2010/04/30 22:48:38 -0700 paragkalra <paragkalra@gmail.com> => To git@vger.kernel.org :
p> I have just started learning - Git. Today while exploring Git, I executed
p> following:
p>
p> git reset
p>
p> Now 'git status' is showing some files under - 'Unstaged changes after
p> reset:'
p>
p> How can I revert back the effect of - 'git reset'
p>
73! Peter pgp: A0E26627 (4A42 6841 2871 5EA7 52AB 12F8 0CE1 4AAC A0E2 6627)
--
http://vereshagin.org
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to revert 'git reset' command
2010-05-01 6:41 ` Peter Vereshagin
@ 2010-05-01 17:19 ` Junio C Hamano
0 siblings, 0 replies; 3+ messages in thread
From: Junio C Hamano @ 2010-05-01 17:19 UTC (permalink / raw)
To: Peter Vereshagin; +Cc: paragkalra, git
Peter Vereshagin <peter@vereshagin.org> writes:
> 2010/04/30 22:48:38 -0700 paragkalra <paragkalra@gmail.com> => To git@vger.kernel.org :
> p> I have just started learning - Git. Today while exploring Git, I executed
> p> following:
> p>
> p> git reset
> p>
> p> Now 'git status' is showing some files under - 'Unstaged changes after
> p> reset:'
> p>
> p> How can I revert back the effect of - 'git reset'
> p>
> You may want to try to make a new commit:
>
> git commit -a
>
> Another way is to rerpair your Git history from your remote repository, if one exists
If "git reset" was run without any other options nor arguments (which
paragkalra seems to have done), there is no damage in the git history that
needs to be repaired. "git reset" by default only resets the index to
match the commit that is checked out. All that is lost is "git add" done
since that commit.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-05-01 17:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-01 5:48 How to revert 'git reset' command paragkalra
2010-05-01 6:41 ` Peter Vereshagin
2010-05-01 17:19 ` Junio C Hamano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).