Where is the Git Repository Path created? -
when 1 creates new repository git, path .git subdir added have same 1 path project files (i.e. files managed git)? way of asking same question is: if want create new git repository, repository path have coincide respective project path, or can create repository directory in location , have git point project path? instance, if project in "f:\my projects\mother goose\gerber\", create git repository in "f:\my repositories\pointer path\gerber\"? , tell git in "\my projects\mother goose\gerber\" files added repository?
is there reason want this?
sure, git supports different directory layouts, using git_dir
, git_work_tree
environment variables (or corresponding switches). useful in server(-like) scenarios, users don’t interact such repositories other pulling , pushing – f.ex. in git-based deployment systems.
but default layout repository in .git
directory @ project root. can try work against that, have tell tools using it. it’s not convenient; you’ll making life difficult yourself.
so unless have solid technical reason (rather mere preference), advise against trying work way.
Comments
Post a Comment