Skip to content

Instantly share code, notes, and snippets.


Matthew J. McCullough matthewmccullough

View GitHub Profile
matthewmccullough /
Created Dec 18, 2013
How to clone and update on two machines


  • copy of the repo (central)

Machine 1 (Windows):

  • Clone (initial acquisition)
  • Make changes locally on laptop
  • Push changes back to
  • Pull to get any new central ( changes

Machine 2 (Linux):

matthewmccullough / 0_reuse_code.js
Created Dec 5, 2013
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console

Git and GitHub Anti-Patterns

An idea prompted by Jeremy Deane via a Tweet


  • Lack of precision
  • No care about atomicity
  • Poor commit messages



> curl

  "repositories": [
      "type": "repo",
      "username": "mattn",
      "name": "go-gtk",
      "owner": "mattn",
matthewmccullough /
Last active Nov 27, 2016
Information Workflows Presentation

Information Workflow

Hi I'm Matthew McCullough. I'm at @matthewmccull on Twitter. I work at GitHub as a trainer and need to organize lots of information in order to write books like Presentation Patterns, the O'Reilly Git book, Gradle book, and over a thousand presentations.

Today's big ideas are:

  • Discover
  • Capture
  • Create
  • Process
matthewmccullough /
Created Oct 26, 2012
Colorado Springs Open Source User Group Continuous Delivery Talk
View asciidoc-code-highlighting-sample.asciidoc



Example 1. Task list from the imported Ant project
$ gradle tasks
matthewmccullough /
Created Sep 26, 2012
2012-09-25 Free Class and Office Hours Notes
matthewmccullough /
Created Sep 21, 2012
Open Enrollment GitHub Class - How to Clone and Push
git clone mytrainingrepo

cd mytrainingrepo
echo CHANGE >> caesar.txt
git add caesar.txt
git commit -m "Changes"
git push 
git branch matthewmccfeature
git checkout matthewmccfeature
vim matthewmcc.txt