You must first create an empty repository on Z:, add it as a remote in
C:\mydir, then issue the git push. Basically as follows, although I
don’t know how Windows git handles backslashes in paths, so maybe you
will have to replace it wich slashes:

C:\mydir> Z:
Z:\> mkdir projectname
Z:\> cd projectname
Z:\projectname> git init --bare
Initialized empty Git repository in Z:\projectname\
Z:\projectname> C:
C:\mydir> git remote add origin Z:\projectname
C:\mydir> git push origin master

On 4 June 2014 08:49, Eric Fowler <eric.fow...@gmail.com> 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 git-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to