<HTML>
<HEAD>
<TITLE>Re: [vtk-developers] Stupid git question #1</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Bill,<BR>
<BR>
I know your question has already been solved, but you might also be interested in this command:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>git reset --hard<BR>
</SPAN></FONT></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
This command blows away any changes in your files and restores to the last checkout from the local repository. Be careful with this though for obvious reasons.<BR>
<BR>
-Ken<BR>
<BR>
On 4/27/10 1:56 PM, "Bill Lorensen" <<a href="bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>I'm not using the correct terminology I think.<BR>
<BR>
I have cloned a repository.<BR>
By accident I changed or deleted a file.<BR>
How do I get a copy of that file from the cloned repository?<BR>
<BR>
Bill<BR>
<BR>
On Tue, Apr 27, 2010 at 3:49 PM, David E DeMarle<BR>
<<a href="dave.demarle@kitware.com">dave.demarle@kitware.com</a>> wrote:<BR>
> git checkout path/to/file<BR>
><BR>
> David E DeMarle<BR>
> Kitware, Inc.<BR>
> R&D Engineer<BR>
> 28 Corporate Drive<BR>
> Clifton Park, NY 12065-8662<BR>
> Phone: 518-371-3971 x109<BR>
><BR>
><BR>
><BR>
> On Tue, Apr 27, 2010 at 3:42 PM, Bill Lorensen <<a href="bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>> wrote:<BR>
>> If I accidentally delete or modify a file in my local repository,<BR>
>> how can I undelete it. I want the equivalent of<BR>
>> cvs update -C<BR>
>><BR>
>> Bill<BR>
>> _______________________________________________<BR>
>> Powered by www.kitware.com<BR>
>><BR>
>> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><BR>
>><BR>
>> Follow this link to subscribe/unsubscribe:<BR>
>> <a href="http://www.vtk.org/mailman/listinfo/vtk-developers">http://www.vtk.org/mailman/listinfo/vtk-developers</a><BR>
>><BR>
>><BR>
><BR>
_______________________________________________<BR>
Powered by www.kitware.com<BR>
<BR>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><BR>
<BR>
Follow this link to subscribe/unsubscribe:<BR>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers">http://www.vtk.org/mailman/listinfo/vtk-developers</a><BR>
<BR>
<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT SIZE="1"><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:7.5pt'><BR>
**** Kenneth Moreland<BR>
*** Sandia National Laboratories<BR>
*********** <BR>
*** *** *** email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
** *** ** phone: (505) 844-8919<BR>
*** web: <a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a><BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT>
</BODY>
</HTML>