Things to install
Terminal
Terminal.app (installed with MacOS) or iTerm
XCode Command line tools
xcode-select --install
Text editor
Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
NodeJS
brew install node
Yarn
brew install yarn
MAMP Apache web server and PHP programming language
Git
* brew install git
Identity and Keys
Generate a key
ssh-keygen -t ed25519
Show your public key
cat ~/.ssh/id_ed25519.pub
Copy public key to clipboard
cat ~/.ssh/id_ed25519.pub | pbcopy
Test key-based authentication with GitHub
ssh -T [email protected]
The Shell
- clear
- pwd
- man
- history
- ls
- cd
- mkdir
- touch
A directory for your code
mkdir ~/Sites
cd ~/Sites
Tell Git your name and email address
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
Set MAMP htdocs to ~/Sites
(default is /Applications/MAMP/htdocs
)
Clone a repository
git clone [email protected]:public-office/workshop.git
Change into the new directory
cd workshop
Move "up" a directory, to it's parent
cd ..
Git commands
git status
git add .
git status
git commit -m 'A description of what I did'