I am having problems with StaSh and git cmds. I don't want to waste anyone's time, so i guess the first question is can I rely on StaSh git functions, clone, push, pull? If not, I guess no need to read further. I realise that StaSh is using other Libs for git.
My workflow:
1. created a repository on Github called lords_project (public repo)
2. In StaSh, did git clone (URL + .git)
-Everything thing seemed to work ok except the folder name created in Pythonista was called 'lords_projec', it was missing the 't' at the end. But the readme and licence file was in the directory.
3. in Pythonista , I created new file in the directory called program.py
4. in StaSh in the lords_projec dir , I did a git commit on program.py
-seem to work ok.
5. Then i did a git push.
-It says it was successful, but no file turns up in Github. I am sure it's not there , did many refreshes.
- so for whatever reason push not working for me
6. added a new file to the repo in Github web client.
7. in StaSh, did a pull.
-first time it did not seem to work.
-so I restarted Pythonista, and did the pull in StaSh again. the file I created in Github turned up
So, the fact the folder name got changed seems a bit strange, but as things mostly seemed to work, I kept going. Maybe, I am using bad naming conventions.
I felt I had finally got the workflow correct as I went through these steps on another repo using PyCharm. using the GUI, but I thought I was starting to finally understand the simplest workflow case.
If this can work, I would love to be able to use it Rather than using working copy or workflow for example. seems, if you can get your head around these git comes in StaSh, this would be the most forward way of using git with Pythonista.
Below, just an output when I did the pull and the push. pull worked, push didn't .
StaSh v0.6.19
Tip: Show a random tip with command totd
[~/Documents]$ cd MyDeployments
[MyDeployments]$ cd lords_projec
[lords_projec]$ ls
LICENSE README.md program.py
[lords_projec]$ git pull
[lords_projec]$ ls
Created_in_git.py LICENSE README.md program.py
[lords_projec]$ git push
Attempting to push to: https://github.com/Phuket2/lords_project.git, branch: refs/heads/master
Push to https://Phuket2:*@github.com/Phuket2/lords_project.git successful.
success!
[lords_projec]$
edit
I guess this an implementation thing but unlike other terminals, when you enter a dir that is git controlled you normally see the prompt change to include the branch that you are on. StaSh, does not do this