I would like to clone a branch, make a change and push into the same branch.
I'm doing this:
mkdir myfolder
cd myfolder
git init
git clone "myurl" -b "mybranch"
git remote add origin "myurl"
edit "myfile.txt"
git add "myfile.txt"
git commit -m "my comment"
git push origin "mybranch"
but I got this error:
error: src refspec "mybranch" does not match any
error: failed to push some refs to "myurl"
what should I do?