-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGitHubToC9Tutorial.txt
More file actions
21 lines (21 loc) · 1.49 KB
/
GitHubToC9Tutorial.txt
File metadata and controls
21 lines (21 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
In the bottom left of your C9 dashboard is a section called “Add-on Services”. Click “activate” next to the “GitHub” icon (if you haven’t already).
When the pop up appears, tell it to allow access to your account. This should complete the link between GitHub account and your C9 account.
While still on the dashboard, look to the right under “Account Settings” for the link “Show your SSH key”. Click on it, and copy the value which appears.
Go to the GitHub SSH settings page, and click “Add SSH Key”
Enter the title “C9”, paste the SSH Key into the “Key” box, and click “Add Key”.
Create a new, empty repository for your project.From your repository’s home page, copy the SSH link. By default GitHub shows the HTTPS link, you will need to toggle it to ssh first!It will look something like:
"git@github.com:yourname/yourrepository.git".
Open your C9 project window, and go to the terminal.Set your git config username:
git config --global user.name "Your Name Here"
Set your git config email (which should match your github account email):
git config --global user.email "your_email@example.com"
Make your current directory a git repository by running:
git init
Using the SSH link you copied in step 7, add the remote repository as the origin:
git remote add origin git@github.com:yourname/yourrepository.git
Add your files and commits, as you normally would:
git add .
git commit -m "First commit"
Push your changes:
git push -u origin master
Admire your updated repository on GitHub