kactus-io / kactus

:cactus: A true version control tool for designers
https://kactus.io
MIT License
1.5k stars 86 forks source link

Question: is it possible to checkout an older commit? #136

Closed lyquix-owner closed 5 years ago

lyquix-owner commented 5 years ago

One of the features we were hoping to get by introducing git into our graphic design workflow is the ability to restore a file as it was at some point in the past. Having this ability allows us to not have to worry about keeping multiple versions of design files, or keeping outdated elements within files just in case they may be needed in the future.

However, we don't see a way in Kactus to checkout a previous commit.

Am I missing something or is this intentional.

Thank you!

mathieudutour commented 5 years ago

It's not possible to checkout a commit in kactus but you can open a Sketch file like it was in a specific commit: image

lyquix-owner commented 5 years ago

Oh got it... thank you... I was clicking directly on the .sketch file and when I do that the Open Sketch File button is not displayed. It is only displayed when clicking on any of the sub-files.

mathieudutour commented 5 years ago

Clicking on the .sketch file? You probably don't want to keep the sketch files in git, and let Kactus recreate them from the json files (otherwise it will create merge conflicts all the time and that would counteract the whole point of Kactus). Here is how to remove them from git: https://kactus.io/help/how-to/#existing-repos

lyquix-owner commented 5 years ago

I see. The repo was empty but it wasn't created in Kactus, so we didn't have the necessary .gitignore.

Thank you!