The slides are available here: http://slides.com/kirschbombe/git-7/fullscreen
You will need to install Git: https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
If you want to use the Cloud9 IDE for this workshop, Git is preinstalled on these cloud-based Linux development environments. https://c9.io/ (signup is free, but requires a credit card)
You will also need a GitHub account. You can get one here: https://github.com
cd
: change directorycd ..
: move up to the parent directorytouch
: create new file herepwd
: print working directorycat
: "concatenate", used to print the contents of a file
git init
: initialize a new git repogit status
: lists files/folders that are unstated/staged, untracked, deleted - do this often!git add
: add specified file(s) to staginggit add .
: add all edited files to staginggit commit -m “commit message”
: commits all staged changes (hint: Keep related changes together in one commit. Commits allow you to roll back and track your work, so try to commit every time you complete a task.)git log
: prints a log of your commit history
git branch [name]
: creates new branchgit checkout [branch name]
: switches to branchgit merge [branch to be merged]
: merge commits into current branchgit branch
: lists all branchesgit branch -d [branch name]
: delete branch
git clone
: clone a remote repo to localgit push
: pushes commits to remote repogit pull
: pull commits from remote repo