Tools for robust, collaborative coding
dplyr verbs take a data frame as their first argument and return one.
slice()select()filter()mutate()arrange()summarize()
git allows you to
save your work,
document your process,
share it and,
collaborate with others.
Repository
A directory whose changes are tracked by git. Also called a “repo”. Initialized with git init.
Staging Area
The set of changes queued up to be included in the next snapshot. Files are moved into it with git add.
Commit
A snapshot of the files in the staging area, saved with a descriptive message. Created with git commit -m.
Each command is called from the command line following git (e.g. git init).
init: initialize a repository (repo)add: move a file into the staging areacommit: take a snapshot of files in the staging area with a message (-m)push: send commits to another repoinit: invite the photographer (git) to the wedding (repo)add: move the bride and groom into the camera framecommit: take a picture of the bride and groom and caption itpush: share the photos online
echo cmd (not git).echo cmd (not git).echo cmd (not git).echo cmd (not git).A tracking files on git is like wandering into Medusa’s Lair: first you walk into the lair (git add) then she petrifies you where you stand (git commit).
Terracotta Warrior of Xian
git allows you to
save your work,
document your process,
share it and,
collaborate with others.


Live coding to set up https://github.com/andrewpbray/demo-project.git
Remote
A web-hosted copy of a repository (e.g. on GitHub) that you link to with git remote add and sync with git push. The default name is origin.
boardwork
