Accidentally ran git clean -d -f and need to get back python3.7

General Tech Bugs & Fixes 2 years ago

0 2 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Bugs & Fixes related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (2)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

 

Won't be running that again, but I've managed to salvage most everything except when I try to run git pull I get an error (because these files were removed)

f="https://forum.tuteehub.com/tag/error">error: unable to create f="https://forum.tuteehub.com/tag/file">file /settings/__pycache__/__init__.cpython-37.pyc (Permission f="https://forum.tuteehub.com/tag/d">denief="https://forum.tuteehub.com/tag/d">d)
f="https://forum.tuteehub.com/tag/error">error: unable to create f="https://forum.tuteehub.com/tag/file">file /settings/__pycache__/base.cpython-37.pyc (Permission f="https://forum.tuteehub.com/tag/d">denief="https://forum.tuteehub.com/tag/d">d)
f="https://forum.tuteehub.com/tag/error">error: unable to create f="https://forum.tuteehub.com/tag/file">file /settings/__pycache__/f="https://forum.tuteehub.com/tag/d">dev.cpython-37.pyc (Permission f="https://forum.tuteehub.com/tag/d">denief="https://forum.tuteehub.com/tag/d">d)
f="https://forum.tuteehub.com/tag/error">error: unable to create f="https://forum.tuteehub.com/tag/file">file /settings/__pycache__/local.cpython-37.pyc (Permission f="https://forum.tuteehub.com/tag/d">denief="https://forum.tuteehub.com/tag/d">d)
f="https://forum.tuteehub.com/tag/error">error: unable to create f="https://forum.tuteehub.com/tag/file">file /settings/__pycache__/prof="https://forum.tuteehub.com/tag/d">d.cpython-37.pyc (Permission f="https://forum.tuteehub.com/tag/d">denief="https://forum.tuteehub.com/tag/d">d)

Because running git clean  -f="https://forum.tuteehub.com/tag/d">d  -f . removed

Removing lib/python3.6/
Removing lib/python3.7/site-packages/allauth/
Removing lib/python3.7/site-packages/autoslug/
Removing lib/python3.7/site-packages/captcha/
Removing lib/python3.7/site-packages/cities_light/
Removing lib/python3.7/site-packages/f="https://forum.tuteehub.com/tag/d">debug_toolbar/
Removing lib/python3.7/site-packages/f="https://forum.tuteehub.com/tag/d">defusef="https://forum.tuteehub.com/tag/d">dxml/
Removing lib/python3.7/site-packages/oauthlib/
Removing lib/python3.7/site-packages/openif="https://forum.tuteehub.com/tag/d">d/
Removing lib/python3.7/site-packages/progressbar/
Removing lib/python3.7/site-packages/python_utils/
Removing lib/
                                                
                                                
0 views
0 shares
profilepic.png
manpreet 2 years ago

looks like some files inside your project are not belong to you, you can find it

find . \! -user trillav -print

so to fix it you can try to ref="https://forum.tuteehub.com/tag/change">change owner by next command

sudo chown -R trillav:trillav .

0 views   0 shares

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.