gitã§ãbareãªä¸å¤®reposã«pushãããã
使ããããã³ã«ã¯:
- http:// ã¯é ãã®ã§ãã
- git:// ã¯git-daemonçã«èªè¨¼ãã¡ãã£ã¨ãããããªã®ã§ãã¾ãã¡
- ããæ¹æ³ããã£ããæãã¦ãã ããï¼ï¼
- pushãã人ãã¯sshã¢ã«ã¦ã³ããããã®ã§ãgit+ssh:// ã§ããã
è¤æ°ã¦ã¼ã¶ãpushããã®ã§ããã¼ããã·ã§ã³ã«æ°ã使ããªããã°ãªããªã:
- å ±éã®ã°ã«ã¼ã(ä¾:sandbox)ã«å±ããã¦ãchown -R root:sandbox sandbox.git; chmod -R g+w sandbox; find sandbox -type d|xargs chmod 2775 ããã°ã°ã«ã¼ãã®çµ±ä¸ã¯OK
- åé¡ã¯ sandbox.git/objects/ ä¸ã¨ãã«æ°è¦ã§ä½ããããã£ã¬ã¯ããªã®ãã¼ããã·ã§ã³ã
- ~/.bashrcã§umask 002ããã°ãããã ãã©ãçããã¦ãããã¨ã¯éããªãã
ã¨æã£ã¦ãgit-init ãè¦ãããããªã®ã
- shared[={false|true|umask|group|all|world|everybody|0xxx}]
...
git-init(1)
group (or true): Make the repository group-writable, (and g+sx, since the git group may be not the primary group of all users).
git-initã®--shareã¯ãcore.sharedRepository ã ãããªã®ã§ãbare reposãªsandbox.git/configã®[core]ã»ã¯ã·ã§ã³ã«sharedRepository = groupã追å ãããã(ã¦ã¼ã¶ã®umaskã®è¨å®ã«ä¾ããã«)ã¡ãã㨠2775 ãªãã£ã¬ã¯ããªãä½ãããããã«ãªãã¾ããã¨ããEnjoy!