Have you commit something by mistake and also pushed everything?
git log
for the list of your log.
The log output is something like:
commit d946591753539639548b94b6aa40a875ce09a872
Author: Andrea Boriero <dreborier@gmail.com>
Date: Fri Nov 4 12:00:38 2011 +0000
bla bla bla
commit d946591753539639548b94b6aa40a875ce09a872
Author: Andrea Boriero <dreborier@gmail.com>
Date: Fri Nov 4 12:00:38 2011 +0000
bla bla bla
choose the commit you want to revert back, for example d946591753539639548b94b6aa40a875ce09a872
than to remove all commits after that:
git reset -f --hard d946591753539639548b94b6aa40a875ce09a872
and than to remove from origin:
git push -f
Hope this can help someone.