Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Working Copy integration sidebar
-
@mrcoxall
stash
has very good git support. I'd use that to push to remote, then open in working copy from there. There's no real reason to use working copy, though, if you're comfortable with command-line git. -
@Webmaster4o I haven't looked at the git support in
stash
recently. Are you able to use ssh keypairs for authentication? That's the primary reason I moved to Working Copy initially. -
@ahenry91 I believe so. Search the forum.
-
So, yes, I have StaSh and I am using it.
I want to use Working Copy, because I would like to use it with my grade 10 programming class.
They are almost all brand new to programming and just the concept of using GitHub is confusing enough for them, adding in the complexity of command line usually sends them over the deep end.
I like the GUI of Working Copy.My ultimate workflow would be for them to create a directory in Pythonista, then the *.py and *.pyui files inside the directory. Then send the directory as a repo to Working Copy and then off to GitHub.
Thanks, Patrick
-
I don't believe stash git currently supports ssh keypairs, though the underlying dulwich does. (actually I have not tried it, I can check if dulwich shells out to unix ssh, which might prevent this from working). it does use https though, and your user/pass is saved in the ios keychain.
-
I was able to successfully get stash git to authenticate with github using ssh. The steps are a little convoluted at first.
- add line 136 to stash/bin/git.py i will, get a pull request soon to avoid this step
dulwich.client.get_ssh_vendor = dulwich.client.ParamikoSSHVendor
- in stash: type following commands
mkdir ~/.ssh ssh-keygen -t rsa -b 2048 cp $STASH_ROOT/.ssh/* ~/.ssh pbcopy ~/.ssh/id_rsa.pub
This creates the .ssh folder (where paramiko looks by default, as opposed to the stash ssh command which looks in stash/.ssh. I thing ~/ used to be read only, but now we can write there, so this might be another pull request to let stash use default folder), and creates keys, and copies the public key to the clipboard. If you have ssh keys already, just copy them to the ~/.ssh and copy to clipboard.
-
open up github in safari. go to user settings/ssh keys, click new key, and paste the result into the text box. give the key a name.
-
back in the pythonista console, we will save the github host key.
import os ssh=paramiko.SSHClient() ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) ssh.connect('github.com',username='yourgithubusernamehere') ssh.get_host_keys().save(os.path.expanduser('~/.ssh/known_hosts')
- you should be now be all set to connect to github via ssh in stash. I will say this seems slower than connecting via https, maybe due to the big keys. use ssh://git@github.com/USERNAME/REPONAME.git format for urls.
As an example (use your own reponame obviously!)
git clone ssh://git@github.com/jsbain/uicomponents.git uicomponents cd uicomponents git commit 'test of ssh' jsbain jsbain git push #just leave blanks for user and pass... need to fix this
-
I was just pointed to this thread (thanks @ccc). I would like to add my vote for integration with Working Copy. The latest release even does submodules. Of course it would not be required (stash etc still available) but for those of us with the app, it is a great option.
-
does working copy support branches/ merging? or it is more geared towards single thread development on master?
-
@JonB Take a look, branches and merging supported - http://workingcopyapp.com/manual.html. I have not used every feature yet but works well with what I have tried.
-
Just curious, any further work towards this integration either underway or planned?
-
@mfkilgore I agree... Working Copy has improved a TON in recent releases. I find It really usable these days but I still have no idea how to do a workflow that goes from GitHub to WorkingCopy to Pythonista to WorkingCopy to GitHub. Stash is awesome but working on a command line on my iPad is not my cup of tea. I do a lot of work at the UNIX command line on my Mac so I have no fear of the command line -- I just does not feel like the right way to go on an iOS device.
-