Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
docs:git:git_with_a_live_website [2009/11/21 22:05] – created billh | docs:git:git_with_a_live_website [2013/06/06 10:17] (current) – billh | ||
---|---|---|---|
Line 1: | Line 1: | ||
===== git with a live website ===== | ===== git with a live website ===== | ||
+ | |||
+ | ==== permissions issues ==== | ||
+ | You should be running the web server as a user other than root. Lets assume ' | ||
+ | |||
+ | === tell git this is a shared repository === | ||
+ | * '' | ||
+ | * --or-- if you are initializing one from scratch, you can do '' | ||
+ | |||
+ | === disable filemode === | ||
+ | I personally disable filemode checks by git since I work across Unix, Mac, and Windows environments. | ||
+ | * '' | ||
+ | |||
+ | === make sure the same group is on all subdirs and files === | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | === make sure new files are read/write for the group === | ||
+ | * change the umask for all users to 002 (many machines have the default as 022) | ||
+ | |||
+ | === alternative/ | ||
+ | * make an alias when using root so git=' | ||
+ | * add post-update hooks to set permissions everywhere | ||
+ | * '' | ||
+ | * learn more about ACL on unix machines which go beyond the typical rwx stuff | ||
+ | * http:// | ||
+ | ==== External Links ==== | ||
+ | * http:// | ||
* http:// | * http:// | ||
* http:// | * http:// |