I
I
Ilya Beloborodov2017-03-05 17:22:34
git
Ilya Beloborodov, 2017-03-05 17:22:34

How to upload a finished project to an empty repository?

Created a repository on bitbucket.
Here's what I'm doing next
cd /path/to/your/repo

git remote add origin https://[email protected]/user/repo.git

git push -u origin master
And this is the error
error: src refspec master does not match any.
error: failed to push some refs to 'https://[email protected]/user/repo.git'

What to do? First time doing this

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
tagplus5, 2017-03-05
@tagplus5

git commit -m 'initial commit'
git push -u origin master

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question