Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git client on the iPhone, possible? How?

Is it possible to embed git in the iPhone app? Only in a passive mode, i.e. to be able to read commit messages (with date and user) and diffs given some online git repository in order to present it in some readable table views?

like image 672
Piotr Byzia Avatar asked Jan 05 '10 19:01

Piotr Byzia


People also ask

Can you use Git on iPhone?

Git is a important part of our work-life and iOS can take part in this. The ability to commit even when offline has added utility on a device that moves in and out of network coverage. Cloning repositories gets you a local copy on your iOS device with commits for all branches.

How do I clone a git repository on iPhone?

To get started, you need to enable Working Copy as a Location in the Files app. (For more information, please check Apple's support website.) Now, open Repositories in Working Copy, tap the + icon and select “Clone repository”. Then, choose an available repository, and tap “Clone”.

Is there a GitHub iOS app?

GitHub Mobile is available as an Android and iOS app.

How do Git clients work?

The Git GUI client is a tool that allows the developer to work with this version control system in a visual mode. It does not require writing commands manually, offering a convenient graphical interface with the in-built options. This way, one can perform the tasks faster and in a more comfortable manner.


2 Answers

I'm one of the co-authors of cocoagit, which is currently an unfinished implementation of the core git functionality in Objective-C. There has not been much activity in the last 6 months. Unfortunately, it is not far quite far enough along to do everything you need. We can read commits, and have preliminary support for cloning repos, but we can't do diffs yet. Geoff and I would both like to have more time to work on it again, but in the meantime, we would gladly welcome any contributions.

Alternatively, I second the recommendations of previous posters to consider using github, or building your own web service to provide the necessary data.

like image 131
Brian Chapados Avatar answered Sep 26 '22 23:09

Brian Chapados


Git (the command-line client) has been ported to jailbroken iPhones.

like image 22
Grant Paul Avatar answered Sep 23 '22 23:09

Grant Paul