A repo to test-drive design+code collaboration with Sketch where the core .sketch data is pushed/pulled to/from the repo only.
git clone https://github.com/zweiland/hg-dls-collab.git
cd hg-dls-collab
sh download.sh
open .
- in Finder open design-system-hostgator.sketch
For a more detailed explanation of the thinking and working of the scripts, please see this blog post
upload.sh
- Pull the latest changes from the repo
- Copy .sketch to .zip
- Extract the core
.sketch
data from the .zip and delete it - Remove the preview image (only full size images will be added to the index)
- Add the core data to the git index
- Commit and push the data
Please note that the .sketch file is itself will not be versioned. The file would only clog the repo and reduce speed.
download.sh
- Pull the latest changes from the repo
- Zip the core Sketch data
- Copy .zip to .sketch and delete .zip
Now you can open the .sketch file with Sketch.app