Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

fatal: bad config value for 'core.sharedrepository' in ./config

Tags:

git

I just entered the command:git config core.sharedrepository 1 and I am now receiving the error:

fatal: bad config value for 'core.sharedrepository' in ./config

Has anyone any idea how to fix it?

like image 579
max_ Avatar asked May 17 '11 17:05

max_


1 Answers

When you enter an invalid value for git config core.sharedRepository, it may fail continuously rather than let you update again with this command:

git core.sharedRepository group

In which case you will need to open up the .git/config file and alter the file manually, like so:

[core]
    ...
    sharedRepository = group
like image 62
MrOodles Avatar answered Sep 30 '22 03:09

MrOodles