Pair Programming - 25 min
- On GitHub, create a new public repo called
cold_day - Add your partner as a collaborator to the repo so they can write to it
git clonethis repo to your local machine andcdinto it- Create a branch called line_one and switch to it with
git checkout -b toucha new file called git_haiku.txt andopenit- Write the first line of the Haiku, save it, then
git addandgit committhe changes locally - Switch to your master branch with
git checkout git mergeyour line_one branch into master- Use
git pushto push changes to GitHub
- Clone the repo using
git cloneandcdinto it - Run
git remote -vto see the origin of this repo - Run
git logto see what work has already been done on this repo - Create a branch called line_two and switch to it with
git checkout -b opengit_haiku.txt- Write the second line of the Haiku, save it, then
git addandgit committhe changes locally - Switch to your master branch with
git checkout git mergeyour line_two branch into master- Use
git pushto push changes to GitHub
git pullto get the latest updates from Partner Two- Repeat steps to add line_three and push back to the GitHub repo
git pullto get a copy of the final Haiku
An old silent pond...
A frog jumps into the pond,
splash! Silence again.
Basho Matsuo
Autumn moonlight—
a worm digs silently
into the chestnut.
Basho Matsuo
Source: http://examples.yourdictionary.com/examples-of-haiku-poems.html