Guest User

Untitled

a guest
Jun 20th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #### Warning
  2. Everything since the commit you want to revert to will be deleted once you push again.
  3.  
  4. - Steps
  5.  
  6. 1. Find the commit number
  7. ```
  8. git log
  9. ```
  10.  
  11. 2. Reset
  12. ```
  13. git reset --hard that_commit_number
  14.  
  15. eg: git reset --hard e3263a17b4a417d79ee71b4317f10987d1b15d54
  16. ```
  17.  
  18. 3. Force Push
  19. ```
  20. git push --force
  21. ```
  22.  
  23. This will revert the repo to the commit #e3263a17b4a417d79ee71b4317f10987d1b15d54
Add Comment
Please, Sign In to add comment