Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Git on Android?

I have a desktop application using git for synchronization. I have also an android application which do the same as the desktop, but I don't know how to do the synchronization part on it. I haven't found any implementation of git on android. I found a jgit, but its unwell documented and I was not able to do even a commit with that.

I was thinking about remote commands to my git server from my android app, but this is really a tease for me. Could you tell me if any other git implementation which can be used on android exists? If you have any idea how to solve that, please tell me.

like image 852
Dave Avatar asked Apr 23 '10 18:04

Dave


People also ask

Can we use Git in mobile?

There may be times when you need to work with Git, and the only device you have is your Android smartphone. When that's the case, what do you do? Thanks to a handy tool called Termux, it is possible to install the command line Git tool on a mobile device.

Does Android Studio work with Git?

In Android Studio, go to VCS > Enable Version Control Integration. This option won't be visible if it's integrated with any version control before. Then choose Git as the version control system.


1 Answers

Since this question was first posted, an Android app has been added to the market that can checkout Git repos, called Agit. It can't commit or push yet, but the clone/fetch/pull functionality is useful. The other issue is that a patched version of ConnectBot needs to be installed before Agit if you want to use SSH keys. If you already have ConnectBot, uninstall it first. I did not do this and ran into problems.

Edit: As of April 2021, the ability to push and pull has been added, however, it does seem to be very buggy as I have only been able to pull changes, but never push them.

like image 61
polymathica Avatar answered Sep 29 '22 00:09

polymathica