Skip to content

Commit

Permalink
Improve commit messages in 01-backup
Browse files Browse the repository at this point in the history
We probably don't want to get into the details of good commit message style
in this lesson, but we should try to model it as best as possible. This updates
the commit messages to make them a little better/more standard.
  • Loading branch information
ethanwhite committed Mar 14, 2015
1 parent 2d8f73f commit 9d0320b
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions 01-backup.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,10 @@ To get it to do that,
we need to run one more command:

~~~ {.bash}
$ git commit -m "Starting to think about Mars"
$ git commit -m "Start notes on Mars as a base"
~~~
~~~ {.output}
[master (root-commit) f22b25e] Starting to think about Mars
[master (root-commit) f22b25e] Start notes on Mars as a base
1 file changed, 1 insertion(+)
create mode 100644 mars.txt
~~~
Expand Down Expand Up @@ -265,7 +265,7 @@ commit f22b25e3233b4645dabd0d81e651fe074bd8e73b
Author: Vlad Dracula <vlad@tran.sylvan.ia>
Date: Thu Aug 22 09:51:46 2013 -0400
Starting to think about Mars
Start notes on Mars as a base
~~~

`git log` lists all revisions made to a repository in reverse chronological order.
Expand Down Expand Up @@ -297,7 +297,7 @@ $ cat mars.txt
~~~
~~~ {.output}
Cold and dry, but everything is my favorite color
The two moons may be a problem for Wolfman
Add concerns about effects of Mars' moons on Wolfman
~~~

When we run `git status` now,
Expand Down Expand Up @@ -338,7 +338,7 @@ index df0654a..315bf3a 100644
+++ b/mars.txt
@@ -1 +1,2 @@
Cold and dry, but everything is my favorite color
+The two moons may be a problem for Wolfman
+Add concerns about effects of Mars' moons on Wolfman
~~~

The output is cryptic because
Expand Down Expand Up @@ -419,7 +419,7 @@ $ cat mars.txt
~~~
~~~ {.output}
Cold and dry, but everything is my favorite color
The two moons may be a problem for Wolfman
Add concerns about effects of Mars' moons on Wolfman
But the Mummy will appreciate the lack of humidity
~~~
~~~ {.bash}
Expand All @@ -432,7 +432,7 @@ index 315bf3a..b36abfd 100644
+++ b/mars.txt
@@ -1,2 +1,3 @@
Cold and dry, but everything is my favorite color
The two moons may be a problem for Wolfman
Add concerns about effects of Mars' moons on Wolfman
+But the Mummy will appreciate the lack of humidity
~~~

Expand Down Expand Up @@ -464,7 +464,7 @@ index 315bf3a..b36abfd 100644
+++ b/mars.txt
@@ -1,2 +1,3 @@
Cold and dry, but everything is my favorite color
The two moons may be a problem for Wolfman
Add concerns about effects of Mars' moons on Wolfman
+But the Mummy will appreciate the lack of humidity
~~~

Expand All @@ -474,10 +474,10 @@ and what's in the staging area.
Let's save our changes:

~~~ {.bash}
$ git commit -m "Thoughts about the climate"
$ git commit -m "Add discussion of Mars' climate"
~~~
~~~ {.output}
[master 005937f] Thoughts about the climate
[master 005937f] Add discussion of Mars' climate
1 file changed, 1 insertion(+)
~~~

Expand All @@ -501,7 +501,7 @@ commit 005937fbe2a98fb83f0ade869025dc2636b4dad5
Author: Vlad Dracula <vlad@tran.sylvan.ia>
Date: Thu Aug 22 10:14:07 2013 -0400
Thoughts about the climate
Add discussion of Mars' climate
commit 34961b159c27df3b475cfe4415d94a6d1fcd064d
Author: Vlad Dracula <vlad@tran.sylvan.ia>
Expand All @@ -513,7 +513,7 @@ commit f22b25e3233b4645dabd0d81e651fe074bd8e73b
Author: Vlad Dracula <vlad@tran.sylvan.ia>
Date: Thu Aug 22 09:51:46 2013 -0400
Starting to think about Mars
Start notes on Mars as a base
~~~

To recap, when we want to add changes to our repository,
Expand All @@ -540,7 +540,7 @@ index 315bf3a..b36abfd 100644
+++ b/mars.txt
@@ -1,2 +1,3 @@
Cold and dry, but everything is my favorite color
The two moons may be a problem for Wolfman
Add concerns about effects of Mars' moons on Wolfman
+But the Mummy will appreciate the lack of humidity
~~~
~~~ {.bash}
Expand All @@ -553,7 +553,7 @@ index df0654a..b36abfd 100644
+++ b/mars.txt
@@ -1 +1,3 @@
Cold and dry, but everything is my favorite color
+The two moons may be a problem for Wolfman
+Add concerns about effects of Mars' moons on Wolfman
+But the Mummy will appreciate the lack of humidity
~~~

Expand Down Expand Up @@ -586,7 +586,7 @@ index df0654a..b36abfd 100644
+++ b/mars.txt
@@ -1 +1,3 @@
Cold and dry, but everything is my favorite color
+The two moons may be a problem for Wolfman
+Add concerns about effects of Mars' moons on Wolfman
+But the Mummy will appreciate the lack of humidity
~~~

Expand All @@ -604,7 +604,7 @@ index df0654a..b36abfd 100644
+++ b/mars.txt
@@ -1 +1,3 @@
Cold and dry, but everything is my favorite color
+The two moons may be a problem for Wolfman
+Add concerns about effects of Mars' moons on Wolfman
+But the Mummy will appreciate the lack of humidity
~~~

Expand Down Expand Up @@ -649,7 +649,7 @@ $ cat mars.txt
~~~
~~~ {.output}
Cold and dry, but everything is my favorite color
The two moons may be a problem for Wolfman
Add concerns about effects of Mars' moons on Wolfman
But the Mummy will appreciate the lack of humidity
~~~

Expand Down

0 comments on commit 9d0320b

Please sign in to comment.