How To Commit Files To GitHub From An Android Phone

Pushing updates to GitHub from an android phone gives a very big advantage to the user, this process can be easily done using SPCK editor.

Once installed you can simply create and push a project file from your phone by following these steps:

  • Sign In To SPCK editor using GitHub:

    Navigate to the sign in bar and click on the GitHub option

    image illustration of the GitHub sign in
  • Create or import your project file

    Click on the projects folder and click create or import new project

    image illustrating clicking on projects folder
  • Create a new repository (If needed)

    login to your profile at the GitHub website at github.com and create a new repository for your project. (Make sure your browsing in desktop mode).

    image illustration for creating new repository
    Note: if there is an existing repository for your project, you don't need to create a new one.

  • Add new remote :

    Go back to SPCK editor, open your project and click on the branches icon

    image illustration for adding new remote

    Select "remote" and add a remote by copying the link of your repository and naming it.

    image illustration for naming repository
  • Push the File:

    Click on the "branches" icon and click commit.

    image illustration for clicking and commiting

    Once it has been commited, click on "push". You will be prompted to select the remote repository, make sure its on the main branch and click "OK".

    image illustration for selecting remote repository

If your doing this for the first time, you'll be required to generate a GitHub access token, this can be achieved by:

  1. Clicking in the "Generate GitHub token link"
    You will be redirected to the GitHub website.
  2. You have two options of generation: Classic and Beta (Classic is preferred)
  3. Grant all required access by clicking the checkboxes
  4. Click on Generate token
  5. Note: Your token has an expiration date and is confidential information, anyone who has it can have access to your repository.

If you make changes to your GitHub repository elsewhere(laptop maybe) and come back to push updates using SPCK editor, you will need to pull the files first before pushing it.

image illustration for successful push

Got stuck? you can access this video on YouTube to get a better explanation