1
# tentando reverter commits sem carregar alterações #
I am trying to apprehend will use HTML2CANVAS,html2canvas is an html library used to capture the visible part of web sites made in html. for a college project where I study , however I could not and ended up generating three commits with problematic code , to be able to share problematic code with my group colleagues . Now that I’ve given the commits I’m trying to go back to branch there is a time when the changes were not made these do not appear already tried with Git checkout and Git reset --hard
git reset --hard <commit-hash>
(changes the contents of the file) orgit reset --soft <commit-hash>
(does not change the content) orgit checkout <commit-hash> -- /path/to/file
orgit revert <commit-hash>
orgit restore -s <commit-hash> /path/to/file
– Valdeir Psr
I would like to thank Valdeirpsr , because he answered my question.
– Emanuel Holanda Barroso