git init
- one time action. initializing a repo.
git status
- current status of your repo. run whenever you want.
git branch
- shows current branch. run whenever you want.
git log
- provides you the history of your git commits. run whenever you want.
git add
- stages files to be committed.
git commit
- commits the file in the current branch.
git checkout -b new-branch
- create and switch to new-branch
git checkout branch
- switch to branch
Create a new repo on web UI and follow along the instructions.
git remote add origin <repo url>
- add a remote
git push -u origin master
- first time only
going forward
git push