To get a repository from github
git clone https://github.com/peterbsmith2/syacuse-ninja-barracks
To make a new branch
git checkout -b <NEW_BRANCH_NAME>
To save code
# 1. add the changes
git add .
# 2. commit the changes. the quotes are necessary
git commit -m "MESSAGE"
# 3. put the saved code on github
git push
To start Hugo Server
hugo server -D
What does '.' and '../' mean?
# open _current_ directory
code .
# open _parent_ directory
code ../
To comment out anything
- Highlight the anythign you want to comment out.
- Press
⌘ + /
Top Git Commands
git checkout <BRANCH_NAME>
git clone <REPOSITORY URL>
git push
git pull
git checkout <BRANCH_NAME>
git branch
git fetch