git bare - GIT INIT not creating a working tree -
i'm doing simple git init c:\xxx running master machine executed on slave machine. c:\xxx path in slave. assumption create non bare repository did not provide --bare option. looked @ system, global config settings in slave machine , set bare = false option in these. after running git init can see local config having bare = true.
from init command takes bare settings default?
when run git init <path> on master machine, git app run on master. uses global configs of machine, have bare=true.
to solve can use 1 of these options:
- login slave machine ssh , run
git init <path> - directly copy premade
.gitselected path on slave. gives option use tweaked repository. e.g. can add git hooks.
Comments
Post a Comment