libgit2 / pygit2

Python bindings for libgit2
https://www.pygit2.org/
Other
1.58k stars 382 forks source link

How can I restore changes to a file? #1141

Open dclong opened 2 years ago

dclong commented 2 years ago

We can achieve it using git restore file_name. How can we achieve this using pygit2?