Barry Fishman <barry_fishman@xxxxxxx> writes: > $ git push --force /pub/git/foo.git master:master > error: dst refspec master does not match any existing ref on the remote and does not start with refs/. > fatal: The remote end hung up unexpectedly > error: failed to push to '/pub/git/foo.git' Read BOTH OF the error messages. Especially the first one. This error message is telling you that the dst side of the refspec you supplied (that's the second 'master' in "master:master") does not exist there, and we do not create it unless you give a full refname that begins with refs/ (so that push can tell if you want to create a tag or a branch). $ git push /pub/git/foo.git master:refs/heads/master would have worked, without --force. - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html