Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #### Warning
- Everything since the commit you want to revert to will be deleted once you push again.
- - Steps
- 1. Find the commit number
- ```
- git log
- ```
- 2. Reset
- ```
- git reset --hard that_commit_number
- eg: git reset --hard e3263a17b4a417d79ee71b4317f10987d1b15d54
- ```
- 3. Force Push
- ```
- git push --force
- ```
- This will revert the repo to the commit #e3263a17b4a417d79ee71b4317f10987d1b15d54
Add Comment
Please, Sign In to add comment