mikael
Oct 26, 2018 - 05:01
I have been struggling with using Git with Pythonista for a long time. git in stash has not really worked for me for a long time, and various other scripts have not been enough either. Working Copy (the git client app) is good, but moving files between it and Pythonista was a problem, and running
But now:
- I have my project with it's several files in iCloud, and can swap between my iPhone and iPad without as needed, without needing to explicitly sync anything.
- When I want to commit some changes, a quick run of a script from the wrench menu copies the whole project tree to Working Copy, where I manage the commits with the nice interface it has.
The wrench menu script just uses distutils.dir_util.copy_tree(src='', dst='') to move the files, with the iCloud and Working Copy directories snooped out by running files with print(editor.get_path()) in the right places.
Very simple, and you might be asking "what took you so long" - but it was not obvious to me, so thought to share.