This exercise comes with a starter repo that you will need to clone down to your machine. We will be working with two bands: Queen and Fleetwood Mac and their various lineups over the years.
Please run the following commands from your terminal. Make sure you are not inside of a Git repo.
git clone <https://github.com/Colt/git-diff-exercise>
git-diff-exercise
. You will be on a branch called current
by default.git switch 1970s
current
and 1970s
Each branch contains two files: queen.txt
and fleetwoodmac.txt
1970s
branch and the current
branch across all files1970s
branch and the current
branch but only for the queen.txt filecurrent
branch if you are not currently on it. Run a diff to compare the current HEAD to the previous commit (you could use the commit hash or reference HEAD's parent commit)current
branch, change the queen.txt
file by replacing Adam Lambert with your own name. Save the change. Add queen.txt
to the staging area. DO NOT COMMIT YET!fleetwoodmac.txt
file, changing the lead singer from Stevie Nicks to Stevie Chicks (one of my chickens). Save the file, but do not stage it.fleetwoodmac.txt
printed out)queen.txt
printed out)