The git documentation seems really good so far but it is a little verbose. Here's a fast bullet list to get you going immediate. It assumes that you have a GitHub account and you made a repo through the website.
- Open git bash
cd
to the directory where you want to put your repo. (mkdir
if you need to)git clone <your repo url on GitHub>
- add all your files/do work
git add .
git commit
- commits all your changes- This will open up a vim editor. Add whatever comment you want for this commit.
- Press Esc to get out of Insert Mode (press
a
to get back into edit mode)
:w
to save your comment
:q
to exit the vim editor
git push
- pushes that commit up to the repo
Another good to know
Revert changes git checkout -- .