Linux compliation Git question

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
Evgeniy
Posts: 477
Joined: Thu Jul 15, 2021 6:10 pm

Linux compliation Git question

Post by Evgeniy »

Read at first:
https://stackoverflow.com/questions/626 ... -clean-fdx

May this recommendation is danger?

Code: Select all

> .gitignore
git clean -df
git reset --hard HEAD
getted from:
https://wiki.freecadweb.org/Compile_on_Linux
User avatar
chennes
Veteran
Posts: 3876
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: Linux compliation Git question

Post by chennes »

Well, that operation is designed to be destructive... so I guess you could argue it's dangerous, in much the same way that saying to delete the contents of your build directory with rm -rf * is destructive. Definitely make sure you do it in the directory you mean to! It's a set of steps designed to clean up a mistake, basically.
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
User avatar
Evgeniy
Posts: 477
Joined: Thu Jul 15, 2021 6:10 pm

Re: Linux compliation Git question

Post by Evgeniy »

May be worth adding a comment that this operation should be performed in the source directory. And that improper use can lead to data loss.
User avatar
chennes
Veteran
Posts: 3876
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: Linux compliation Git question

Post by chennes »

Wouldn't hurt --- do you have wiki edit access?
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
User avatar
Evgeniy
Posts: 477
Joined: Thu Jul 15, 2021 6:10 pm

Re: Linux compliation Git question

Post by Evgeniy »

chennes wrote: Tue Oct 05, 2021 2:10 pm Wouldn't hurt --- do you have wiki edit access?
Yes. But how can I describe it better?
Post Reply