Figured out the 401 error. It is complaining about credentials.
I created a new local repo on my iPad and tried to push it to an empty repo on Bitbucket. I added a remote for the Bitbucket repo using:
git remote [name] [URL]
And then tried to push using:
Git push [name]
Username: [user]
Password: [pass]
But I got the same error as above
class 'dulwich.errors.GitProtocolError'>: unexpected http response 401
Is there some reason that StaSh can't talk to Bitbucket? Can I use SSH keys? If so, how so I do that?
Also, in the process I added a bad remote to my repo on the iPad. Is there some StaSh command to remove a remote? The help doesn't list one. I suppose I could dig through the source to find how it added one and reverse that... if I had to.
EDIT:
Trashed the repo on the iPad because there is no way to remove remotes.
Went back to Bitbucket and turned the repo off of "Private"
Then I went back to Pythonista -> StaSh window and tried clone repo again using:
git clone [URL]
And successfully got the repo to clone on my iPad
I then added some files to the repo from the iPad by moving files from another folder in Pythonista and then added to the repo using:
git add *
git commit
Commit Message: [message]
Author Name: [name]
Save [y/n]y
Author Email: [email]
Save [y/n]y
This worked okay too, but then when I tried to push back to the repo using:
git push
Username: [user]
Password: [pass]
I ALWAYS get the same error from before:
class 'dulwich.errors.GitProtocolError'>: unexpected http response 401
And I am certain my credentials are correct for the repo (I have logged into and out of it on the website many times today to verify this). I have tried using my email instead of username. Nothing I try works to allow me to push back to the Bitbucket repo.
Would it be possible for someone to try this and let me know what I am doing wrong, or add Bitbucket capability to dulwich if necessary? Thanks!!