It means you have commits in your local repo that are not on the remote repo you cloned from. If you git push them they will be back in sync.<br><br><div class="gmail_quote">On Tue, Apr 27, 2010 at 4:44 PM, Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Do not fear, this is not the VTK repository...<br>
<br>
I get the message:<br>
 git status<br>
# On branch master<br>
# Your branch is ahead of 'origin/master' by 1 commit.<br>
#<br>
nothing to commit (working directory clean)<br>
<br>
What does that mean?<br>
<div><div></div><div class="h5"><br>
On Tue, Apr 27, 2010 at 4:37 PM, Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>> wrote:<br>
> It works.<br>
><br>
> Maybe I have messed up my remote repository,<br>
><br>
> Thanks<br>
><br>
><br>
> On Tue, Apr 27, 2010 at 4:33 PM, David E DeMarle<br>
> <<a href="mailto:dave.demarle@kitware.com">dave.demarle@kitware.com</a>> wrote:<br>
>> Does:<br>
>><br>
>> git checkout Hybrid<br>
>><br>
>> not work?<br>
>><br>
>> On my system it recursively restores the whole Hybrid directory from<br>
>> my Index into my working directory. Then I am back to where I was<br>
>> before I "rm -rf"'d it.<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 4:27 PM, Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>> wrote:<br>
>>> OK, let we be a bit more specific.<br>
>>><br>
>>> I cloned the VTK repository.<br>
>>> After a while I did<br>
>>> git pull<br>
>>><br>
>>> Now I'm up to date.<br>
>>><br>
>>> Now I<br>
>>> rm -rf Hybrid<br>
>>><br>
>>> How do I get it back!<br>
>>><br>
>>><br>
>>> On Tue, Apr 27, 2010 at 4:23 PM, Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>> wrote:<br>
>>>> I know they are local.<br>
>>>><br>
>>>> But, if I screwup my local repository, how can I recover files from<br>
>>>> the noon-local repository.<br>
>>>><br>
>>>> Fortunately for all, I am experimenting with a repository on gitorious...<br>
>>>><br>
>>>> On Tue, Apr 27, 2010 at 4:19 PM, David Cole <<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>> wrote:<br>
>>>>> Maybe you should preface your response with "Stupid git *answer* #1"<br>
>>>>><br>
>>>>> Think of it like this, everyone: with cvs, *checkout* and *commit* were<br>
>>>>> "communicate with the server" commands. Now with git, they are "communicate<br>
>>>>> with the local repository" commands.<br>
>>>>> checkout and commit are both now completely local operations. It's<br>
>>>>> fetch/pull and push that go back-and-forth over the wire now.<br>
>>>>><br>
>>>>> On Tue, Apr 27, 2010 at 4:08 PM, David E DeMarle <<a href="mailto:dave.demarle@kitware.com">dave.demarle@kitware.com</a>><br>
>>>>> wrote:<br>
>>>>>><br>
>>>>>> no confusion, checkout will restore a file from the repository.<br>
>>>>>><br>
>>>>>> [kargad:devel/ParaView/VTK] demarle% fif "*.txt" Lorensen<br>
>>>>>> ./Copyright.txt:Copyright (c) 1993-2008 Ken Martin, Will Schroeder,<br>
>>>>>> Bill Lorensen<br>
>>>>>> ./Copyright.txt: * Neither name of Ken Martin, Will Schroeder, or Bill<br>
>>>>>> Lorensen nor the names<br>
>>>>>> ./Utilities/Doxygen/authors.txt:lorensen: Lorensen, Bill<br>
>>>>>> (<a href="mailto:lorensen@crd.ge.com">lorensen@crd.ge.com</a>)<br>
>>>>>> ./Utilities/EncodeString/CMakeLists.txt:# Copyright (c) Ken Martin,<br>
>>>>>> Will Schroeder, Bill Lorensen<br>
>>>>>> ./Utilities/HashSource/CMakeLists.txt:# Copyright (c) Ken Martin, Will<br>
>>>>>> Schroeder, Bill Lorensen<br>
>>>>>> ./Utilities/ParseOGLExt/CMakeLists.txt:# Copyright (c) Ken Martin,<br>
>>>>>> Will Schroeder, Bill Lorensen<br>
>>>>>> [kargad:devel/ParaView/VTK] demarle% rm Copyright.txt<br>
>>>>>> [kargad:devel/ParaView/VTK] demarle% rm Utilities/Doxygen/authors.txt<br>
>>>>>> [kargad:devel/ParaView/VTK] demarle% rm<br>
>>>>>> Utilities/EncodeString/CMakeLists.txt<br>
>>>>>> [kargad:devel/ParaView/VTK] demarle% rm<br>
>>>>>> Utilities/HashSource/CMakeLists.txt<br>
>>>>>> [kargad:devel/ParaView/VTK] demarle% rm<br>
>>>>>> Utilities/ParseOGLExt/CMakeLists.txt<br>
>>>>>> [kargad:devel/ParaView/VTK] demarle% fif "*.txt" Lorensen<br>
>>>>>> [kargad:devel/ParaView/VTK] demarle% git checkout Copyright.txt<br>
>>>>>> [kargad:devel/ParaView/VTK] demarle% fif "*.txt" Lorensen<br>
>>>>>> ./Copyright.txt:Copyright (c) 1993-2008 Ken Martin, Will Schroeder,<br>
>>>>>> Bill Lorensen<br>
>>>>>> ./Copyright.txt: * Neither name of Ken Martin, Will Schroeder, or Bill<br>
>>>>>> Lorensen nor the names<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:56 PM, Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>><br>
>>>>>> wrote:<br>
>>>>>> > 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="mailto: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<br>
>>>>>> >> <<a href="mailto: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 <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>>>>>> >>><br>
>>>>>> >>> Visit other Kitware open-source projects at<br>
>>>>>> >>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">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" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
>>>>>> >>><br>
>>>>>> >>><br>
>>>>>> >><br>
>>>>>> ><br>
>>>>>> _______________________________________________<br>
>>>>>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>>>>>><br>
>>>>>> Visit other Kitware open-source projects at<br>
>>>>>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">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" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
>>>>>><br>
>>>>><br>
>>>>><br>
>>>><br>
>>><br>
>><br>
><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">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" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
</div></div></blockquote></div><br>