On Mon, 7 Apr 2008, Will Rocisky wrote:
> I want to create a git repository on USB where I can push to and pull
> from. Is it possible?
Not only possible. I do it all the time. But please do not make the
error of using a non-bare repository there.
Ciao,
Dscho
:)
IIRC there was the famous "HEAD" vs "head" problem.
Also, the index is prone to get out of sync when accessing the USB drive
from different Operating Systems, since the inode information is
different.
Which means that earlier, the files appeared changed whenever accessing
them from another OS, and now with the automatic index updating, actions
take much longer.
Ciao,
Dscho
> On Tue, 8 Apr 2008, Junio C Hamano wrote:
>
>> Johannes Schindelin <Johannes....@gmx.de> writes:
>>
>> > On Mon, 7 Apr 2008, Will Rocisky wrote:
>> >
>> >> I want to create a git repository on USB where I can push to and pull
>> >> from. Is it possible?
>> >
>> > Not only possible. I do it all the time. But please do not make the
>> > error of using a non-bare repository there.
>>
>> Why not?
>
> IIRC there was the famous "HEAD" vs "head" problem.
How does "a bare repository" make that irrelevent?
Also the original question just talked about "USB". I think there are USB
harddisks these days ;-)
On Wed, 9 Apr 2008, Junio C Hamano wrote:
> Johannes Schindelin <Johannes....@gmx.de> writes:
>
> > On Tue, 8 Apr 2008, Junio C Hamano wrote:
> >
> >> Johannes Schindelin <Johannes....@gmx.de> writes:
> >>
> >> > On Mon, 7 Apr 2008, Will Rocisky wrote:
> >> >
> >> >> I want to create a git repository on USB where I can push to and
> >> >> pull from. Is it possible?
> >> >
> >> > Not only possible. I do it all the time. But please do not make
> >> > the error of using a non-bare repository there.
> >>
> >> Why not?
> >
> > IIRC there was the famous "HEAD" vs "head" problem.
>
> How does "a bare repository" make that irrelevent?
It is irrelevant for bare repositories, because you do not typically work
with anything HEAD related in them. You just push and fetch specific
branches, at least that is what I do.
> Also the original question just talked about "USB". I think there are
> USB harddisks these days ;-)
Yes, and I even have one which is formatted as ReiserFS. Good point.
But I still have USB sticks that I use to share data between different
operating systems (notably Windows, since that is still the most
complicated and error-prone OS in terms of networking that I know). And
that's what I assumed of the OP as well.
Ciao,
Dscho
On Wed, 21 May 2008, Mikew wrote:
> On Apr 8, 7:56 pm, Johannes Schindelin <Johannes.Schinde...@gmx.de>
Blast from the past!
> mwake@L201263 /c/git_work
> $ git clone --bare fixed_drive /e/removable_drive
Why not rather
$ cd /e/
$ git clone --bare /c/git_work/fixed_drive removable_drive
Hmm?
Ciao,
Dscho
>> mwake@L201263 /c/git_work
>> $ git clone --bare fixed_drive /e/removable_drive
>
> Why not rather
>
> $ cd /e/
> $ git clone --bare /c/git_work/fixed_drive removable_drive
>
> Hmm?
Nope. cd /e/ doesn't work here either.
mwake@L201263 ~
$ cd /e/
sh.exe": cd: /e/: No such file or directory
Mikew.
On Wed, 21 May 2008, mike wake wrote:
> Nope. cd /e/ doesn't work here either.
>
> mwake@L201263 ~
> $ cd /e/
> sh.exe": cd: /e/: No such file or directory
The wonders of Microsoft. You need to open the Bash _after_ your USB
drive was properly recognized.
Hth,
Dscho
> You need to open the Bash _after_ your USB
> drive was properly recognized.
Tried that too. Same result here. Does it work for you?
I can "cd /cygdrive/e" in a cygwin bash shell.
I can get to the drive by typing "e:/" in a cmd shell
Git Bash, on my computer at least, has a problem getting to USB drives.
I have some partitions M: and N: as well as a CDROM drive D: that Git
Bash can cd into.
ie The following all work
cd /d
cd /m
cd /n
cd d:
cd m:
cd n:
Three finger salute coming up to see if that clears it.
Cheers
Mikew.
Next time, if there is one, I'll try looking for some stray processes to kill.
Cheers
Mikew.
What exactly is a non-bare repository?
Shak