how to return a commit without loading the changes

Asked

Viewed 31 times

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) or git reset --soft <commit-hash> (does not change the content) or git checkout <commit-hash> -- /path/to/file or git revert <commit-hash> or git restore -s <commit-hash> /path/to/file

  • I would like to thank Valdeirpsr , because he answered my question.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.