This is somewhat confusing to me as to what you really want. Do you want a
"bare repository" on your Z: drive? This means you & your subordinates
would need to "git clone" to create their own copy (working directory). Or
do you actually want to have the ".git" subdirectory for your (and other
users') c:\mydir to reside on the Z: drive instead of being a subdirectory
(folder to Windows types) in c:\mydir? The first case is simply "git init
--bare --shared z:\repodir" to create a bare repository which you and
others can then "git clone z:\repodir" followed by "git push" to update.
This is what I am used to doing. If the later, look at "git init
--separate-git-dir z:\repodir". I really don't know if this latter will
work if multiple people need up update it (which is what I think a "git
add" or "git commit" will do). Perhaps one of the true experts will comment
on having a "shared" git index setup of this sort. Personally, I go with
"be afraid! Be very, very afraid!" in this latter case. I don't think git
is designed to allow sharing of an index folder on a CIFS (Windows share)
shared directory. But I've been wrong in the past. Well, it's 02:25 and I
need to try to get back to sleep, if I just could.


On Wed, Jun 4, 2014 at 1:49 AM, Eric Fowler <[email protected]> wrote:

> This should be screamingly easy, in fact, I know I have done this before -
> but I forget how.
>
> I do remember that I had a hard time with it before.  :-(
>
> I have created a file on my C:\ drive. Let us call it
> c:\mydir\helloworld.cmd .
>
> I have a Z: drive mapped with lots of drive space and write privs. This
> drive is accessible to the millions of programmer-slaves under my command.
>
> I wish to use z: as a repository for all my code, and for all my
> programmer-slaves code.
>
> I wish to add my helloworld.cmd file to that repository.
>
> How do I do this?
>
> I know how to use 'git init' to create a repo on C:, and how to use 'git
> add', 'git commit', and 'git push'. But I don't know how to tell 'git push'
> to use Z: as a target, and I don't know what I have to do to prepare z:\ to
> receive the files.
>
>
>
>
>
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Git for human beings" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>



-- 
There is nothing more pleasant than traveling and meeting new people!
Genghis Khan

Maranatha! <><
John McKown

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to