git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* reverting back both working copy and commits
@ 2006-01-11 16:32 Bahadir Balban
  2006-01-11 19:28 ` Andreas Ericsson
  2006-01-11 19:37 ` Junio C Hamano
  0 siblings, 2 replies; 4+ messages in thread
From: Bahadir Balban @ 2006-01-11 16:32 UTC (permalink / raw)
  To: git

Hi,

I made some commits that later on I wanted to cancel. I did:

% git-branch master-2006-get-rid-of-commits

% git-reset --hard [sha1id]

where sha1id is the id of commit I want to revert back to. After this,
git-log points at the right commit (the one with [sha1id]) as the last
commit made. However, the working copy is left in the original state,
i.e with the unwanted changes.. How do I also revert the working
sources into an earlier state.

Because git-commit says "nothing to change" at this stage, git
checkout -f does not cure my problem. How do I also revert working
copy to earlier commit?

Thanks,
Bahadir

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-01-12 10:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-11 16:32 reverting back both working copy and commits Bahadir Balban
2006-01-11 19:28 ` Andreas Ericsson
2006-01-11 19:37 ` Junio C Hamano
2006-01-12 10:40   ` Bahadir Balban

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).