Can I commit files to GitHub from Android Phone

If you are happy to use the command line on your phone, and you are running Android 5 or above, then try installing the Termux app. You can then pkg install git, clone your GitHub repository (if you don't yet have a repository, create one on GitHub's website and it will tell you the commands you need), move the files into it (if you've already edited files outside of Termux, then you might need to type termux-setup-storage and check inside the storage directory to find them), and do the git add * and git commit -am files and git push.

Alternatively if it is just one or two small files then you might find GitHub's "online code editor" useful.

A third option is if you are able to transfer the files to a server somewhere (for example, use SpeedSoftware Explorer to create a zip, and use a CGI script or something to help you upload that zip to your server, or improvise an scp command or equivalent, or even use DropBox if you also have it installed in your home directory on the server), then SSH into the server and run the git commands from there.


You can't edit from the mobile version of GitHub website. You have to switch to desktop site and then edit. In mobile version of GitHub site, the editor is not available.

Alternatively, you can replace "blob" with "edit" in the mobile URL.

Thank you.


Is there a way to put files from Android onto my GitHub page?

Sure.

Choose a Git client from the Play store and install it. There are a few free options and a few paid ones. Some are essentially read-only cients, but others will let you make changes.

Note that with Git you aren't really "putting files onto your GitHub page", but rather creating commits on your local device and pushing those commits to GitHub.

Alternatively, you should be able to use GitHub's web editor to make changes directly from Chrome or Firefox (though you might have to request the desktop web interface instead of the mobile one).

Tags:

Android

Github