Prework Study Guide

Profile image of cat wearing a bow tie.

✨ Open the Console to See What's Happening ✨

HTML

A gif of Sam Gamgee from LOTR enunciating the word Potatoes. PO-TAY-TOES is written over the image.

CSS

Git

Notes

Quick Reference

Command Action
git clone [url] download a repository that already exists on github, including all of the files, branches, and commits.
git status checks what branch, and what changes there are, and what is staged for commit
git checkout -b branch-name creates a new branch and switches to it
git checkout branch-name switches to branch-name
git branch returns list of all branches open locally. *asterisked branch is the one that's checked out (the active one)
git branch -d branch-name deletes branch-name
git fetch downloads all history from the remote tracking branches
git merge Combines remote tracking branches into current local branch
git add file-name adds file-name to the staging area ready for commit. git add -A adds all changed files to next commit.
git push uploads all local branch commits to GitHub
git pull updates current local working branch with all new commits from the corresponding remote branch on GitHub. A combination of "git fetch" and "git merge"
git diff first-branch second-branch shows differences between the two specified branches.
git config --list list all chosen configurations

JavaScript