Skip to content

Commit 9fd0542

Browse files
committed
Add additional git status steps to show effects
This helps visual the effects of the previous commands by adding intermediate steps where we run `git status` and explain what you should see.
1 parent b429f48 commit 9fd0542

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

sites/en/intro-to-rails/add_the_project_to_a_git_repo.step

+13-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ initialized a new repository in a hidden directory called `.git`."
2020
console "git status"
2121

2222
message "`git status` tells you everything git sees as modified, new, or missing."
23-
message "The first time you run this, you should see a ton of stuff."
24-
message "The second time you run this, you shouldn't see much of anything."
23+
message "You should see a ton of stuff under `Untracked files`."
2524
end
2625

2726
step do
@@ -42,12 +41,24 @@ initialized a new repository in a hidden directory called `.git`."
4241
end
4342
end
4443

44+
step do
45+
console "git status"
46+
47+
message "Now you should see a bunch of files listed under `Changes to be committed`."
48+
end
49+
4550
step do
4651
console "git commit -m \"Added all the things\""
4752
message "`git commit` tells git to actually _do_ all things you've said you wanted to do."
4853
message "This is done in two steps so you can group multiple changes together."
4954
message "`-m \"Added all the things\"` is just a shortcut to say what your commit message is. You can skip that part and git will bring up an editor to fill out a more detailed message."
5055
end
56+
57+
step do
58+
console "git status"
59+
60+
message "Now you should see something like `nothing to commit, working directory clean` which means you've committed all of your changes."
61+
end
5162
end
5263

5364
explanation do

0 commit comments

Comments
 (0)