Thomas Wallace

Lectures and Resources

Cloning your GitHub Workspace to AWS

In Github

  1. Login to github and browse to your repository.
  2. Click on the green “Code” button. It should say: “Clone with HTTPS”. Click the clipboard next the name of the URL. The URL should look like “https://github.com/yourusername/repo-name.git”

In AWS

  1. Log into your Cloud9 Instance
  2. In the Terminal Window type the following:
    • git config --global user.name "USER_NAME"  (Press Return)
    • git config --global user.email EMAIL_ADDRESS (Press Return)

      Note: If there is no terminal window at the bottom of the IDE, you can open a new one by right-clicking the top-level folder in the file tree and selecting “Open Terminal Here”

    • git config --global credential.helper store  (Press Return)

      This command enables the credential helper so you don’t need to enter your login token every time you commit to the Repo. 

    • The previous three commands should only have to be ran when first setting up your workspace. You should need to enter these every time you publish.

Cloning your File Repository from Github

  1. Now enter the following command in the terminal to clone copy your repository to AWS. You should now see a “repo-name” folder with a README file in it.
    • git clone https://github.com/yourusername/repo-name.git (This should be the URL you copied from Github)