This repository contains the exercises to my git presentation. Look in answers.txt for solutions on how to solve these problems.
-
Fork the repository on Github.
-
Open the logs and figure out how many commits there are.
-
Create a file called p3.txt, add it, and commit it with a sensible message.
-
Push your change to your forked repo on github.
-
Reset the head so that the commit you just added is removed (in the future, don't do this after you've already pushed out a commit!).
-
List all of the branches (remote and local)
-
Create a branch called advanced and make a commit on it.
-
Push advanced out to a github repository. If this works, Github should say that you have 2 branches on your remote
-
Merge advanced with master
-
Delete advanced on both the local and remote repos.