I'm getting an error when cloning a bitbucket-hosted repository to my computer.
When I enter in git bash:
git clone https://myusername@bitbucket.org/groupname/repositoryname.git
I get the message
Cloning into 'repositoryname'..
fatal: bad config line 1 in file U://.../repositoryname/.git/config
Unlink of file 'repositoryname/.git/config' failed.
Should I try again? (y/n)
The destination folder contains a .git
subfolder, which itself contains the file config
, along with a hooks
subfolder containing various files.
The config file has the following contents:
[core]
repositoryformatversion = 0
filemode = false
Trying again by hitting y accomplishes nothing.
I am aware of a similar question asked earlier: Bad git config file .git/config, but that had to do with a repository that was being worked on.
This is a problem with even getting started, so I'm at a loss to see what to do.
In case my .gitconfig
file is considered as a possible source of the error, here its contents:
[user]
name = ...
email = ...