I deleted your repository and re-created it, so that you can do a fresh push.
>
> Thanks in advance,
> --
> Vincent
Thanks
JS
$ git push g...@gitorious.org:vogel/mainline.git
No refs in common and none specified; doing nothing.
fatal: The remote end hung up unexpectedly
>
> Thanks in advance,
> --
> Vincent
Thanks
JS
Hi Vincent,You can do the following:(backup your project and repository)Checkout the branch you want to revert backDelete your commit locally (git reset --hard HEAD^)run "git push origin YOUR_BRANCH_NAME -f"The -f will force the local branch to overwrite a remote branch.
Best,Tim
The -f command should still help youIf you are trying to push master:- make sure that the master branch exists locally, via 'git branch'
$ git branch
* master
- command git to promote that branch to the remote, and overwrite anything that's theregit push origin master:master -f
$ git push origin master:master -f
error: src refspec -f does not match any.
error: dst refspec -f 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 'g...@gitorious.org:vogel/mainline.git'
git remote add origin g...@gitorious.org:vogel/mainline.git
# to push the master branch to the origin remote we added above:
git push origin master
# after that you can just do:
git push
Tim
Ah, well I suppose it would help if I told you the params in the right order!Try this:git push -f origin master:master
Tim
eegad, no! But whatever you do, don't type "git reset --hard" in your home directory, or "git clean -f", or anything like that.Tim