From 2299818b1503cd23d4778f86421d13c23421817c Mon Sep 17 00:00:00 2001 From: Daniel Sissom Date: Tue, 10 Sep 2024 16:16:54 -0500 Subject: [PATCH] Updated readme with fixes for setting up shared bare repo. --- README.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0289aa8..dcb5712 100644 --- a/README.md +++ b/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: ``` # 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