Newbie: Restore messed up code from local or remote repository

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello -- Extreme Git Newbie

I have a project that is checked into a local git repository as well as
pushed to a remote repository.

Through misadventure I've managed to screw up my working code and want to
restore what I had from my last commit on either the local or remote
repositories.

So I blew away my messed up working files and tried:

git checkout
git pull -f /path/to/remote/repos
git fetch -f /path/to/remote/repos

None of the above did the trick.  The two remote commands reported that
everything was Already up-to-date! (even though I'd deleted a lot of local
working files)

What am I missing?  How can I restore my previous state from last commit?

Thanks!
Greg
-- 
View this message in context: http://git.661346.n2.nabble.com/Newbie-Restore-messed-up-code-from-local-or-remote-repository-tp5731540p5731540.html
Sent from the git mailing list archive at Nabble.com.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]