Skip to content

Instantly share code, notes, and snippets.

@MaskedCarrot
Last active November 9, 2021 12:01
Show Gist options
  • Save MaskedCarrot/ea0933311b95a108f99e3c6c106ea101 to your computer and use it in GitHub Desktop.
Save MaskedCarrot/ea0933311b95a108f99e3c6c106ea101 to your computer and use it in GitHub Desktop.

For a detailed explanation of the fork-and-clone process, please see this GitHub help page.

Fork and clone the Oppia Android repository

To make code changes, please follow the following instructions

Using the terminal

  1. Make sure that you are in the opensource/ folder on your local machine.

  2. Click on the "Fork" button on the top-right corner (at the same level as the oppia/oppia-android repository name): Oppia-Android Fork

  3. You can now see Oppia-Android under your repositories. It will be marked as forked from oppia/oppia-android Oppia-Android Origin Repo

  4. Clone this repository to your local computer by running git clone https://github.com/USERNAME/oppia-android.git in a terminal.

  5. To keep your local repository, forked repository and main oppia-android repository in sync, configure your remote repositories by running the following two commands in a terminal:

    • git remote -v (this lists your current remote repositories)
    • git remote add upstream https://github.com/oppia/oppia-android (this adds oppia/oppia-android as an upstream repo)

Using android studio's UI based github workflow

  1. Navigate to your fork, e.g. https://github.com/<your_username>/oppia-android. Click on Clone or download and copy the link (the URL will look different since you should be using your fork, not https://github.com/oppia/oppia-android).

1

  1. Now, go to Android Studio>File>New>Project from Version Control>Git

2

  1. Log in GitHub with your credentials.

  2. Paste the URL and click on Clone button. Wait for a few minutes until Gradle build completes.

4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment