Cloning your GitHub Workspace to AWS
In Github
- Login to github and browse to your repository.
- 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
- Log into your Cloud9 Instance
- 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
- 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)
-