I just tried to do a force push to a remote branch like this:
$> git checkout myBranch
$> git rebase origin/master
$> git push --force origin/myBranch
fatal: 'origin/myBranch' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
I know I have the branch remote (I do normal pushes al the time) so I guess there is something wrong with the --force
or the origin/myBranch
. Can someone explain to me what the correct syntax is here ? Thanks a lot!