$ whoami
README.md
Do not make copies of sketches.
Make commits @ logical stopping points!
same files == version nightmare
Example: John Resig's port of Processing to JavaScript.
$ git log
His goal was for patches to take three seconds.
Wikipedia
philosophy promoting universal access via free license to product's design or blueprint and universal redistribution of that design or blueprint, including subsequent improvements by anyone.
Wikipedia
processing
repository on GitHubConfigure Username, Email and Password caching settings.
Navigate to directory you want files stored in.
git clone <HTTPS clone URL>
$ git clone https://github.com/earth2travis/processing.git
cd processing
git status
background(50);
background(153, 204, 255);
Return to Terminal
$ git status
$ git diff
$ git add flocking.pde
$ git status
$ git commit -m "Change background to blue."
$ git remote -v
# origin https://github.com/earth2travis/processing.git (fetch)
# origin https://github.com/earth2travis/processing.git (push)
$ git remote set-url origin https://github.com/user/processing.git
replace user with GitHub username
$ git remote -v
# origin https://github.com/user/processing.git (fetch)
# origin https://github.com/user/processing.git (push)
$ git push -u origin master
$ git branch add_trees
$ git branch
$ git checkout add_trees
void setup()...
and
void draw()...
PImage bg;
void setup() {
size(1000, 563);
bg = loadImage("trees.jpg");
flock = new Flock();
// Add an initial set of boids into the system
for (int i = 0; i < 150; i++) {
flock.addBoid(new Boid(width/2,height/2));}}
void draw() {
background(bg);
flock.run();}
$ git status
$ git add flocking.pde
$ git commit -m "Add trees in background."
$ git checkout master
$ git merge add_trees
$ git branch -d add_trees
$ git branch
$ git push
$ git log --graph --decorate --abbrev-commit --all --pretty=oneline