8000 GitHub - anthonykrivonos/treesaver: 🌳 Restore any GitHub tree after you accidentally force push.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

anthonykrivonos/treesaver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

🌳 treesaver

Restore any GitHub tree after you accidentally force push.

How to use it

  1. Clone this repo and cd to it.
  2. Find the SHA string of the tree you'd like to restore by accessing https://api.github.com/repos/<your_username_or_org>/<repo>/events.
  3. In the payload property corresponding to your push event, find the commit you'd like to revert to and click on its url.
  4. Under commit.tree, copy the tree's url.
  5. Run python3 main.py <tree_url> <path_to_save_to>.

Example: python3 main.py https://api.github.com/repos/<username>/<repo>/git/trees/<tree_sha> .

Author

Anthony Krivonos (Portfolio | Github)

About

🌳 Restore any GitHub tree after you accidentally force push.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0