I want to develop an iOS application that executes the git clone
command to basically get a repository on the phone. After that the only command is git fetch
so I will periodically update the files. After those 2 commands nothing more is required. just local parsing on the files.
My question is can I do that on iOS? I had a similar application working on ubuntu, and it was quite easy to do using 'git .....' commands
you cant launch other apps / processes on ios so you cant call the git executable.
BUT there is libgit2 - ac static lib you can use in your ios app to work with git: see http://libgit2.github.com
there is a objC wrapper that makes it a breeze to use: see https://github.com/libgit2/objective-git
You can use Git on iOS via the iSH app .
Perhaps not directly useful to you, but I'm writing this here because I earlier found this thread when googling how to git push
/ git pull
on an iPhone.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.