I accidentally modified my git config file and now hitting git remote --v
in the terminal it returns: fatal: Invalid refspec '+refs/heads/*:refs/remotes/:origin/*'
,
What could be wrong in my config file, this is how it looks:
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = ssh://[email protected]/myuserame/repo.git
fetch = +refs/heads/*:refs/remotes/:origin/*
Any idea will be appreciated, Thanks.
You can safely delete the [remote "origin"] section from your config file and reinitialize the remote settings in the CLI as if you had not yet done it for the repository in the first place.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With