|
@ -118,9 +118,14 @@ for all relevant directories (newly created subdirectories should inherit permis |
|
|
In upstream bare repo directories (e.g. `webserver:/usr/local/src/web/example.com/www/`), run: |
|
|
In upstream bare repo directories (e.g. `webserver:/usr/local/src/web/example.com/www/`), run: |
|
|
``` |
|
|
``` |
|
|
# git init --bare --shared=group |
|
|
# git init --bare --shared=group |
|
|
# git config receive.denyCurrentBranch updateInstead |
|
|
|
|
|
# git config receive.denyNonFastForwards false |
|
|
|
|
|
# git config core.sharedRepository true # if needed because of missing init option |
|
|
|
|
|
|
|
|
# git config set --local receive.denyCurrentBranch updateInstead |
|
|
|
|
|
# git config set --local receive.denyNonFastForwards false |
|
|
|
|
|
# git config set --local core.sharedRepository true # if needed because of missing init option |
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
In order to push to shared repositories under `/usr/local/src/`, set the global git config option: |
|
|
|
|
|
``` |
|
|
|
|
|
$ git config set --global safe.directory "/usr/local/src/*" |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
In working copy repos, set upstream and push branches to new bare repos, then in |
|
|
In working copy repos, set upstream and push branches to new bare repos, then in |
|
|