C
C
Cockie2021-03-10 09:34:02
Python
Cockie, 2021-03-10 09:34:02

How to solve heroku problem?

I'm trying to put the bot on heroku, but after the command 'git push heroku main' I get an error:
error: src refspec main does not match any
error: failed to push some refs to ' https://git.heroku.com/ '

On command ' git commit -am "My first bot"' gives this:
On branch master
nothing to commit, working tree clean

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
MK, 2021-03-10
@Cockie

From the text of the second error, it is clear that your branch is not called main, but master, respectively, you need to perform git push heroku master
As for the second error, do it first git add ., and then git commit -m "My first bot", rather, you don’t have any files added to the git index at all. Even before the commit, you can execute git status)
There is a good book on git here: https://git-scm.com/book/en/v2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question