I have a public repository at github.com with 2 branches : master and test.
I created a new directory locally and did:
[
Perhaps try:
git push git@github.com:{username}/{projectname}.git HEAD:test
The format of the last parameter on that command line is a refspec which is a source ref followed by a colon and then the destination ref. You can also use your local branch name (my_test) instead of HEAD to be certain you're pushing the correct branch.
The documentation for git push has more detail on this parameter.