On Mon, May 18, 2009 at 11:20 AM, SandeepKsinha <sandeepksi...@gmail.com> wrote:
> Hi all,
>
> I have recently started using git... I know quite late.
>
> Say, I make some changes and create a patch.
> I want to revert back the files to the original/initial revision( when
> I created git ), how to do that?
>
> I tried
> git checkout -f
>
> This didn;t work for me.

Perhaps you have commited your changes to the index already.
What you need is
1. git reset --hard
2. alternatively - git branch $newbranchname
$shasumofcommitwhichwascleanforyou && git checkout $newbranchname &&
git branch -d $oldbranchname

HTH

>
> --
> Regards,
> Sandeep.
>
>
>
>
>
>
> “To learn is to change. Education is a process that changes the learner.”
>
> --
> To unsubscribe from this list: send an email with
> "unsubscribe kernelnewbies" to ecar...@nl.linux.org
> Please read the FAQ at http://kernelnewbies.org/FAQ
>
>



-- 
Pradeep

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecar...@nl.linux.org
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to