Now that you have learned the basics of Git workflow, try running through this a couple of times on your own:
- Create a folder called
learn_git_again
. cd
into thelearn_git_again
folder.- Create a file called
third.txt
. - Initialize an empty git repository.
- Add
third.txt
to the staging area. - Commit with the message “adding third.txt”.
- Check out your commit with
git log
. - Create another file called
fourth.txt
. - Add
fourth.txt
to the staging area. - Commit with the message “adding fourth.txt”
- Remove the
third.txt
file - Add this change to the staging area
- Commit with the message “removing third.txt”
- Check out your commits using
git log
- Change your global setting to
core.pager=cat
– you can read more about that here. - Write the command to list all of the global configurations for
git
on your machine. You can typegit config --global
to find out how to do this
You can find the solutions here
When you’re ready, move on to GitHub Introduction