On performing :
$ git push -u origin --all
I got an error:
remote: error: insufficient permission for adding an object to repository database ./objects
I googled, and find out a solution by Richard Hansen.
I had to perform:
$ git config core.sharedRepository group
Rather, I executed it as:
$ git config core.sharedRepository dev
because i thought I have to enter name of group in the actual command(here "dev" is the name of the group which has a user, named "gituser").
Since then, whenever I am trying to execute any command in Git Bash, it is saying:
fatal: bad numeric config value 'dev' for 'core.sharedrepository' in .git/config: invalid unit
For this too, I found a solution at this link
which says:
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
I did this, but all in vain. Still any command in Git Bash gives the same error :
fatal: bad numeric config value 'dev' for 'core.sharedrepository' in .git/config: invalid unit
Can somebody please help me in solving this issue. Thanks in advance.