File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,8 +35,8 @@ Run the demos in VS Code for the combined view of the file contents and the term
35352. Run ` tree .git/hooks` and discuss output.
36363. Run ` less .git/hooks/pre-commit.sample` and discuss output.
37374. Create a version of the file that will get run: ` cp .git/hooks/pre-commit.sample .git/hooks/pre-commit` .
38- 5. Edit the ` .git/hooks/pre-commit` file to have ` exit 1` near the top (automatic failure).
39- 6. Attempt to commit the slides PDF to this branch. Discuss why it failed.
38+ 5. Edit the ` .git/hooks/pre-commit` file to have ` echo " Read-only -- no commits allowed " ; exit 1; ` near the top (automatic failure).
39+ 6. Attempt to commit the slides PDF to this branch and then run ` git status ` . Discuss why it failed.
40407. Run ` rm .git/hooks/pre-commit` to get rid of the automatic failure hook.
41418. Attempt the commit again. Discuss why it succeeds.
42429. Push the changes up so the PDF version of the slides is available for everyone.
You can’t perform that action at this time.
0 commit comments