How to use VCS (git) to save output binary files

Sep 10, 2015 21 Replies

That's completely backwards. The concepts behind git literally couldn't be any simpler. It's the command-line interface, options and nomenclature that are difficult, they're just chaotic.

Learn the git internal object model and everything else starts to make sense.

The best way to deal with clutter is to not run your builds inside of a VCS repository. Use the lndir command to create a image of your repository and run your tools in there.

For example if your repo is named foo.

mkdir foo_cmp cd foo_cmp lndir ../foo .

foo_cmp is an exact image of foo. The only difference is that where foo has the real files, foo_cmp will have symbolic links back to the real files.

Run your build in foo_cmp. All generated files will stay in foo_cmp and never appear in foo. Your "make clean" routine only has to rm the foo_cmp directory and rebuild it.

It's clean simple and less work than maintaining all those makefiles.

John Eaton

--------------------------------------- Posted through

formatting link

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required