remote: error: By default, updating the current branch in a non-bare repository

Error :
remote: error: By default, updating the current branch in a non-bare repository

Solution:
git config –bool core.bare true