[GRLUG] Git help

L. V. Lammert lvl at omnitec.net
Thu Mar 14 11:01:27 EDT 2013


On Thu, 14 Mar 2013, Benjamin Flanders wrote:

> Now I go to the working directory and try a
>
> git checkout master -- "dev directory"
>
> and I get an error fatal: not a git repository.
>
What you're missing is that a git repository is under the current
directory (the "root" of the git configuration), it is not available
anywhere else - it is not like a 'service' you can access from anywhere.

To setup a 'working' directory, you would git init a new config there,
then 'grab' the files from dev.

The best way to do it would be to set a repository that you can share from
both dev & working; you would then "push" from dev to synchronize with the
repository, and "pull" from working to get any changes.

To create this 3rd repository (normally on another machine or even github
if you are so inclined), you would 'git init --bare'.

There are many howto's online that can provide more details.

	HTH,

	Lee
-------------- next part --------------
_______________________________________________
grlug mailing list
grlug at grlug.org
http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug


More information about the grlug mailing list