I try to checkout a remote branch.
And then make a commit and then push.
I get fatal: No destination configured to push to error when I do a ‘git push’.
Here is the sequence of commands I use:
$ git checkout remote/test-1.6
$ git checkout -b test-1.6
$ git commit -a -m "commit message"
$ git push
fatal: No destination configured to push to.
Thank you.
You need to specify both the remote alias and the branch you wish to push (if there are many branches and you only want to push one).
From the docs for push:
If you wish to push all branches to the remote repo (or only have one to push), you can omit the branch specifier and do a
For your specific case, as Mike specified in his comment,
should work.