Reputation: 1916
all,
I have a pretty simple issue, but did not find a good explanation and solution in 10 mins. So I think it is better to ask here. Normally, I follow the rule using web ui to create a remote project and then start my local. But today, I follow the rules below (from here) to add a local folder as a new remote git project.
$git init
$git add .
$git commit -m ...
$git remote add origin https://gitlab.com/group/project
$git remote -v
$git push origin master
All went well till the last step. I got an error below:
fatal: https://gitlab.com/group/project/info/refs not valid: is this a git repository
How can I further check what is going on and how to solve this error?
Thanks
Upvotes: 1
Views: 200
Reputation: 24589
You just need to add valid url to the project that ends with .git
like
https://gitlab.com/group/project.git
Upvotes: 1