* found some code...
@ 2012-01-18 1:02 Ron Eggler
2012-01-18 1:16 ` Andrew Ardill
0 siblings, 1 reply; 5+ messages in thread
From: Ron Eggler @ 2012-01-18 1:02 UTC (permalink / raw)
To: git
Hi There,
Some mishap had happened with my project:
I found a piece of code that is the most recent one that never got commited to
the repository. It is dated December 5th and it definitely is the most recent
piece of code.
Now in the mean time I switched computers so I had to reinstall git and get
create new local folders. Now this directory with the most recent code, shows
every file as unversioned which should not be true.
Only a couple, maybe 3 files had changed with that last change. Now when I commit
this now, is that gonna mess up my old repo or can I safely gio ahead and commit
that most recent code (even tho it might commit the whole folder) - it almost
seems like it forgot which files
were in the repo vs. which files were in my local folder...
Thanks for hints and suggestions how I get myself cleanly out of this mess!
Thanks,
Ron
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: found some code...
2012-01-18 1:02 found some code Ron Eggler
@ 2012-01-18 1:16 ` Andrew Ardill
2012-01-18 2:49 ` Ron Eggler
0 siblings, 1 reply; 5+ messages in thread
From: Andrew Ardill @ 2012-01-18 1:16 UTC (permalink / raw)
To: Ron Eggler; +Cc: git
Hi Ron,
On 18 January 2012 12:02, Ron Eggler <ron.eggler@gmail.com> wrote:
> Hi There,
>
> Some mishap had happened with my project:
> I found a piece of code that is the most recent one that never got commited to
> the repository. It is dated December 5th and it definitely is the most recent
> piece of code.
> Now in the mean time I switched computers so I had to reinstall git and get
> create new local folders. Now this directory with the most recent code, shows
> every file as unversioned which should not be true.
> Only a couple, maybe 3 files had changed with that last change. Now when I commit
> this now, is that gonna mess up my old repo or can I safely gio ahead and commit
> that most recent code (even tho it might commit the whole folder) - it almost
> seems like it forgot which files
> were in the repo vs. which files were in my local folder...
>
> Thanks for hints and suggestions how I get myself cleanly out of this mess!
> Thanks,
> Ron
>
Out of interest, how did you transfer the existing code onto the new
machine? In particular, did you clone the existing repository using
git clone, or using some other method (such as zipping/emailing)? If
it was not via clone, did you copy the .git subdirectory, or did you
recreate it?
Is the old repository (on the old computer) still available?
Regards,
Andrew Ardill
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: found some code...
2012-01-18 1:16 ` Andrew Ardill
@ 2012-01-18 2:49 ` Ron Eggler
2012-01-18 9:56 ` Holger Hellmuth
0 siblings, 1 reply; 5+ messages in thread
From: Ron Eggler @ 2012-01-18 2:49 UTC (permalink / raw)
To: Andrew Ardill; +Cc: git
On January 18, 2012 12:16:49 PM Andrew Ardill wrote:
> Hi Ron,
>
> On 18 January 2012 12:02, Ron Eggler <ron.eggler@gmail.com> wrote:
> > Hi There,
> >
> > Some mishap had happened with my project:
> > I found a piece of code that is the most recent one that never got
> > commited to the repository. It is dated December 5th and it definitely
> > is the most recent piece of code.
> > Now in the mean time I switched computers so I had to reinstall git and
> > get create new local folders. Now this directory with the most recent
> > code, shows every file as unversioned which should not be true.
> > Only a couple, maybe 3 files had changed with that last change. Now when
> > I commit this now, is that gonna mess up my old repo or can I safely
> > gio ahead and commit that most recent code (even tho it might commit
> > the whole folder) - it almost seems like it forgot which files
> > were in the repo vs. which files were in my local folder...
> >
> > Thanks for hints and suggestions how I get myself cleanly out of this
> > mess! Thanks,
> > Ron
>
> Out of interest, how did you transfer the existing code onto the new
> machine? In particular, did you clone the existing repository using
> git clone, or using some other method (such as zipping/emailing)? If
> it was not via clone, did you copy the .git subdirectory, or did you
> recreate it?
I copied the whole directory (incl .git) onto a thumb drive.
> Is the old repository (on the old computer) still available?
No, unfortunately not
--
Ron
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: found some code...
2012-01-18 2:49 ` Ron Eggler
@ 2012-01-18 9:56 ` Holger Hellmuth
[not found] ` <CAHxBh_QiZzJP2jS6rMpC1c=P8uXSbFWumbcnHj3ArkQB4sXyPQ@mail.gmail.com>
0 siblings, 1 reply; 5+ messages in thread
From: Holger Hellmuth @ 2012-01-18 9:56 UTC (permalink / raw)
To: Ron Eggler; +Cc: Andrew Ardill, git
On 18.01.2012 03:49, Ron Eggler wrote:
> On January 18, 2012 12:16:49 PM Andrew Ardill wrote:
>> Hi Ron,
>>
>> On 18 January 2012 12:02, Ron Eggler<ron.eggler@gmail.com> wrote:
>>> Hi There,
>>>
>>> Some mishap had happened with my project:
>>> I found a piece of code that is the most recent one that never got
>>> commited to the repository. It is dated December 5th and it definitely
>>> is the most recent piece of code.
>>> Now in the mean time I switched computers so I had to reinstall git and
>>> get create new local folders. Now this directory with the most recent
>>> code, shows every file as unversioned which should not be true.
>>> Only a couple, maybe 3 files had changed with that last change. Now when
>>> I commit this now, is that gonna mess up my old repo or can I safely
>>> gio ahead and commit that most recent code (even tho it might commit
>>> the whole folder) - it almost seems like it forgot which files
>>> were in the repo vs. which files were in my local folder...
Try "git update-index --refresh", more info in this recent thread
"http://comments.gmane.org/gmane.comp.version-control.git/188291"
If this doesn't help:
Human language is very ambiguous. What do you mean by "found a piece of
code"? Somewhere outside the repository, in a branch inside the
repository, in a subdirectory?
What do you mean by "get create new local folders"? Do you mean a folder
where you copied the repository or do you mean folders inside your
repository where you created new files with your editor?
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-01-18 22:46 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-18 1:02 found some code Ron Eggler
2012-01-18 1:16 ` Andrew Ardill
2012-01-18 2:49 ` Ron Eggler
2012-01-18 9:56 ` Holger Hellmuth
[not found] ` <CAHxBh_QiZzJP2jS6rMpC1c=P8uXSbFWumbcnHj3ArkQB4sXyPQ@mail.gmail.com>
2012-01-18 22:45 ` Holger Hellmuth
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).