Any guidance on how to do a 'git clone' from a private repository with StaSH?
Omniver last edited by Omniver
I can't seem to find any way to set the username/password on a clone to be able to pull my code. What am I missing?
ccc last edited by ccc
I do not use StaSH for git interactions so I can not advise you on your exact question.
However, if your git server has a web interface where you can start a transfer, then check out read_zipfile_from_github.py which is simple enough that you might be able to bend it to your needs. For more complicated interactions, I use and recommend the Working Copy app. Once code is in WC, I leverage this script to move that content into Pythonista.
JonB last edited by JonB
You should be able to use
git clone https://user:firstname.lastname@example.org/path/to/repo.git
The user:pass gets intercepted and turned into an OAuth
Omniver last edited by
@JonB - been trying that, no-go. Does it work for you?
JonB last edited by
On second though, not sure if clone supports password right now. More recent dulwich does, but we would need to tweak some things to integrate it.
You could try
git init somereponame pathToRepo git remote origin https://yourprivaterepo.com/repo.git git fetch origin -u user:password
I have not tried it, but it seems we at least intended this to work