- Please refer to GitHub Tutorial 1 before making a new repository.
- Please download Atom if you don't have it yet.
- Make sure you are in the directory in your local Environment that you have cloned from GitHub from tutorial 1.
- Make a change on the README.md file in your newly cloned directory by using Atom.
- In your terminal Type
atom README.md
This opens README.md in Atom. Edit this file by adding whatever you wish the world to know about your project. - In your terminal Type
git status
Lists all new or modified files to be commited. - You should see this in your terminal
modified: README.md
This means that Git has noticed your change on the file README.md. - In your terminal Type
git add .
This means you have added all the files in preparation for versioning. You can also enter$ git add [file]
which means add this single file in preparation for versioning. You can choose to type in your terminalgit status
to see if your changes has been added to staging. - In your terminal Type:
git commit -m"Added description to README.md to indicate the purpose of this repository"
Think about this as setting a milestone for your project. - In your terminal Type
git push origin master
. Find a ref that matches master in the source repository, and update the same ref in origin repository with it. If master did not exist remotely, it would be created. This pushes your local change (on the branchmaster
) to a remote (hosted by Github) repository (on the branchmaster
). - Now go to your GitHub repository and refresh. You should see your new commit, along with the updates you made to
README.md
.
After Class Read:
Additional Resources:
- Terminal command cheatsheet.
- Git command cheatsheet.
- GitHub Guide
- More in depth Extended Resource
- Atom Essential Classes
- Atom cheatsheet