Best way to recover from a broken repo

The moonraker repo seems broken on my printer. Since the interface is not available anymore, I have to ssh into the Raspi. I can pull the latest moonraker (git fetch - git pull) but still there are some files that seem untracked (see pic) Is there a smarter way to cleanup my monnraker repo?
No description
2 Replies
Prav
Prav5mo ago
have you done any modifications on your own? if not.
git fetch
git reset --hard origin/master
git fetch
git reset --hard origin/master
will do the trick
D!NU
D!NU5mo ago
thanks, solved in the meanwhile ;D