Hi All, Dscho, On Apr 8, 7:56 pm, Johannes Schindelin <[EMAIL PROTECTED]> wrote: > Hi, > > 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.
So how do you do it? (ie what do you type to clone to a removable USB stick using msysgit) In otherwords, How can I specify a removable drive as the location for the bare clone? Here is what I have tried using Git-1.5.5-preview20080413.exe, ie git version 1.5.5.1015.g9d258, installed using the "Use Git Bash Only" option. Insert USB stick which is mounted by windows as drive E: (As seen/ verified in windows file explorer) Start Git Bash using quick launch icon. [EMAIL PROTECTED] ~ $ mkdir -p /c/git_work/fixed_drive [EMAIL PROTECTED] ~ $ cd /c/git_work/fixed_drive [EMAIL PROTECTED] /c/git_work/fixed_drive $ git init Initialized empty Git repository in .git/ [EMAIL PROTECTED] /c/git_work/fixed_drive $ echo "hello" > hello.txt [EMAIL PROTECTED] /c/git_work/fixed_drive $ git add hello.txt [EMAIL PROTECTED] /c/git_work/fixed_drive $ git commit -m "Initial Version" So far so good. Now attempt to clone it to the removable usb key. [EMAIL PROTECTED] /c/git_work/fixed_drive $ cd /c/git_work [EMAIL PROTECTED] /c/git_work $ git clone --bare fixed_drive /e/removable_drive Initialized empty Git repository in C:/Program Files/Git/e/ removable_drive/ Hmmm :-/ Not what I wanted or expected. [EMAIL PROTECTED] /c/git_work $ git clone --bare fixed_drive e:/removable_drive Initialized empty Git repository in c:/git_work/e/removable_drive/ Hmmmmmm :/ Still not what I wanted or expected. How can I refer to a removable drive? [EMAIL PROTECTED] /c/git_work $ cd /e sh.exe": cd: /e: No such file or directory [EMAIL PROTECTED] /c/git_work $ cd /E sh.exe": cd: /E: No such file or directory !!!! I initially thought this next one was interesting and may be a clue in the right hands !!! [EMAIL PROTECTED] /c/git_work $ cd e: [EMAIL PROTECTED] e Notice that the Prompt is missing the leading / But if you look above at the creation of a clone in an unintended location, there is an "e" directory in C:/Program Files/Git Hope this level of detail is not too much and helps highlight the problem Cheers Mikew.
