Hot Bod¶
Setup¶
Run the following setup commands to get started.
cd path/to/parent/dir/
mkdir hotbod && cd hotbod
git init
git commit --allow-empty -m "initial commit"
touch foo.txt
--allow-empty
In this example, our first commit is an empty one, meaning no files were modified in the commit. Git only lets us do this if we use the --allow-empty
flag.
Why would we do this?
Eventually we'll learn about rebasing. Rebasing allows us to rewrite history for all commits except the first one. If our first commit is always empty, we'll never need to modify it.
Challenge¶
Stage and commit foo.txt
. Give your commit a title and body, like this
add foo.txt
foo.txt will retain a bunch of notes and ideas about the
project. It will contain the database schema, color schemes,
examples, and code snippets.