Browse Source

Updated readme with fixes for setting up shared bare repo.

master
Daniel Sissom 1 month ago
parent
commit
2299818b15
Signed by: djsissom GPG Key ID: 2C30FFB796852389
1 changed files with 8 additions and 3 deletions
  1. + 8
    - 3
      README.md

+ 8
- 3
README.md

@ -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

Loading…
Cancel
Save