I am trying to configure autopush to the branch dev in github, using CircleCi. The problem is that I get an error like:
"error: src refspec dev does not match any.
error: failed to push some refs to 'git@github.com:myname/repo.git'.
Exited with code 1".
When I am using git remote -v
, I can see:
origin git@github.com:myname/repo.git (fetch)
origin git@github.com:myname/repo.git (push)
And on the github required branch "dev" exists. Below you can see the part of my *yml code for CircleCi that makes everything.
- run:
name: Git config email
command: git config --global user.email "name@mail.ru"
- run:
name: Git config name
command: git config --global user.name "Name"
- run:
name: git remote -v
command: git remote -v
- run:
name: Push to dev
command: git push origin dev --force