Go into the newly created directory by typing cd _name_of_your_repo_
ls
Commit
To save the state of a single or collection of changes.
How to make a commit with git
Whenever you make a change inside the folder where your repo is, git notices
and will let you know what files have been changed. Making a commit will then
require a commit message.
Git Status
Commit Message
A note that describes what the commit is about.
Bad Commit Messages
Whoops
Fixed a thing
I have no idea
Everything works now
I am so angry at the universe right now
Better Commit Messages
Added the missing read-me file
Fix: Extraneous semi-colon removed
Moved the cat-pix folder inside the images folder
Resolved the problem where content would not display
Realize that not only are you communicating with future-you, but potientially others
When you can, focus on why you did something not what you did
Activity
First commit
Open up the file named "README.md" inside the directory you just created,
make a change, and save it.
Commit your changes:
Type git add README.md
Type git commit -m "Your Commit Message"
Make sure to provide a good description for your commit
And remember to put your commit message in quotes
Syncing your changes
Also known as pushing in the command-line world
Takes the changes you made on your computer and sends them off to the GitHub website
Activity
Sync your changes
Type git push origin master
View the changes on GitHub:
https://github.com/[username]/[repo name]
A quick note on READMEs
README files are generally provided with software or other files that provides information for the person opening it.
They can contain:
How to use a piece of software
Who made the software
Any bugs in a chunk of software
According to the jargon file the name comes from Lewis Carroll's Alice's Adventures In Wonderland
when she encounters "Eat Me" and "Drink Me"
READMEs on GitHub
Always will display on the main page on the repo
Are important to those viewing the project so they can see what it is about and how to use it
Supports the ability to make the content appear with styling using MarkDown