I removed the following entry from ~./.gitconfig file:
[safe]
bareRepository = explicit
and now it is working.
Topic:
Programming Languages
SubTopic:
Swift
Tags: