The biggest challenge as well as need for freelancers and remote teams is to "go mobile" nowadays. Although mobile code editors help programmers to develop on the go, without mobile support for version control systems like Git, developers hardly use such IDEs.
With so much of the traditional, desktop-based productivity software we know and love moving to the Cloud, it’s…Read more
There are, however, some apps to setup and use Git repositories on Android platform. Git Clients, Servers and IDEs for Android help coders to code on the go and push the same to cloud repos on GitHub, BitBucket and others or to a local repository. That’s not all, you can also create and clone repos, checkout and merge branches and do much more.
In this post, we’re going to share the best free tools for using Git on Android devices and a few step-by-step tutorials on how to do a quickstart with Git repos using one of the tools.
SGit is undoubtedly the best Git client for Android. It’s an open-source program that supports all the basic features of any such client. The app stores all the repositories in your phone’s internal storage, keeping your private repos secure from thieves and hackers.
Moreover, it’s being actively developed and comes with the following features (at the time of writing):
Creates and deletes local repos
Adds and clones remote repos
Pulls from and pushes to remote repos
Checkouts and merges branches and tags
Browses and diffs commits from a repo
Edits and saves files (using external editors)
Highlights syntax when browsing the files
Provides dark theme for night usage
Allows importing repos from the computer
Supports HTTP, HTTPS and SSH protocols
Supports user/pass and SSH key authentications
Supports choosing storage directory for local repos
Allows choosing of code’s language for syntax highlighting
Git is a super-basic and read-only Git client for Android. The app gives offline access to your remote Git repositories (from GitHub, BitBucket and others) but doesn’t present all required features offered by other clients.
Gidder is a Git server for Android same as GitHub, BitBucket GitLab or others. It’s like carrying your own GitHub projects with you on the go. That also means more security for your sensitive projects.
The app works on top of an SSH server and lets people access the projects using WiFi. It allows multiple users to access the repositories (if permitted) and do operations on the repos. It provides following features for using repos over local wireless network:
Creates, edits and deletes repos
Allows cloning repos from its server
Supports push to and pull from repos
Creates, edits and deletes users that can access repos
Activates or deactivates the Git server when WiFi switches on/off
Integrates Dynamic DNS support for people working in different networks
Its SSH-based server improves the connection security
Allows assigning permissions to users for controlled access
Git Repository Server is another Git server for Android that’s quite similar in features to Gidder. The app performs well for hosting Git repos locally on your smartphone similar to how GitHub, BitBucket or others host your projects on their servers.
It allows you to carry your projects with you on the run. Its use of your phone’s internal storage ensures your projects are safe from accidental deletion or theft. It mostly does all the required job and avails features listed below:
Creates, edits and deletes repos
Supports cloning repos from its server
Starts with boot, i.e., auto-starts when phone starts
Creates, edit and deletes users for accessing the repos
Allows setting Dynamic DNS if your networks keep changing
Provides SFTP storage too as a secure file storage
Supports Maven repos apart from Git for keeping project files
Allows setting user permissions for rule-based controlled access
Doesn’t operates over SSH
Using SGit on Android
I’d like to take this opportunity to show you how to use Git on Android. To do this, I’m using SGit as the example. Let’s look at how you can clone a remote repository and create a local repository with SGit.
Clone a Remote Repository using SGit
Open the SGit client, if you have not already.
Tap on the + icon (in the action bar) to add a new repository
Enter the remote repo’s URL and its local name
Enter its username and password too if case it’s a private repository and if it requires your user credentials for cloning
Click on the Clone button. SGit will clone (download) the remote repo locally.
Create a Local Repository using SGit
Tap on the + icon (in the action bar) to add a new repository.
Click on the Init Local button to create a local repository.
Enter the name of your local repository.
Click on the Init button. SGit will create a local repository per the filled details.
That’s all about tools and guides for using Git on Android. Do you already use Git or develop code on your Android? We’d like to hear about your experience of coding on the go.