# Tandem-t-slim-X2-Case-CAD This is designed to serve as a base repository for use with FreeCAD projects. Note: This does NOT version the .FCStd files directly, but rather allows you to unpack them for version control. # How to Use You will need to manually pack and unpack freecad files using the provided scripts (you may need to chmod +x the fc-pack and fc-unpack scripts). A total workflow looks like so: >cd > git clone . (or git pull for an existing repo) >./fc-pack Now open the file in FreeCAD, make any changes like normal, and save the file >./fc-unpack >git add * >git push # Additional options fc-pack can take directories (or lists of directories) as an argument, if you would only like to work on a limited number of files in a repository. Usage: fc-pack ... with no arguments, fc-pack attempts to find all decompressed FreeCAD projects by searching for Document.xml files in the current directory and any subdirectories fc-unpack can similarly take a file or list of files as an argument, if you would only like to commit changes to a limited number of FreeCAD projects in one repository. Usage: fc-unpack ... with no arguments fc-unpack attempts to find and unpack every .FCStd file in the current directory and any subdirectories # Why? Why use version control? You can roll back changes, create different concurrent versions by branching\*, and keep shared projects easily accessible in a shared location. This is just scratching the surface of what version control can do, generally, although this template only enables a small portion of that for FreeCAD projects. # OK, but why like this? The main benefit to handling files in this way is a reduced repository size, as you do not have one big binary blob added to the repo every commit. Ostensibly, this also allows you to merge and parse changes in a human-readable way, but this is a tenuous claim; the structure of a FreeCAD project is not consistent and modular enough to ensure that two people's work won't conflict, even if you're working on entirely different parts of a .FCStd project. Of course, you still get the other benefits of version control, and this allows your FreeCAD project files to sit neatly amongst your other versioned files, without bloating your repo, and without leaving them entirely unversioned. This is a very simple set of files: the .gitignore, which ignores .FCStd files, an fc-unpack script that unzips the .FCStd files to their own folders, and an fc-pack script that uses freecad to [re]generate a .FCStd file from a directory to which a .FCStd file had previously been unpacked. \*Merge at your own risk!