PFonseca

Developer

View site on GitHub Statuses Archives

git revert

Revert the last change from git repository but keep your changes to commit:
git reset --soft HEAD~1


Revert the last change from git repository and remove your changes:
git reset --hard HEAD~1


Published on 15/04/2015 at 20h53 by pfonseca, tags

If you liked this article you can follow me on Twitter
  • by Fagner Zordan 04/02/2016 at 13h28

    Muito bom esses comandos ai, me salvou umas vezes ai já rsrs Podia postar também quando eu realizo o push pro repositório, obrigado!


comment git revert


Powered by Publify