From f7e6de04c02d27bf15793a2b675b263a4d7b1f30 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 6 Feb 2013 16:37:59 -0500 Subject: [PATCH] quizzes/git: Add 'gitignore' question --- quizzes/git.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/quizzes/git.json b/quizzes/git.json index 3a6d3d5..d8647c6 100644 --- a/quizzes/git.json +++ b/quizzes/git.json @@ -188,6 +188,24 @@ "commit", "rewrite" ] + }, + { + "class": "ScriptQuestion", + "interpreter": "sh", + "id": "gitignore", + "prompt": "Tell git to ignore files ending with `~`.", + "answer": "echo '*~' > .gitignore", + "setup": [ + "git init" + ], + "teardown": [ + "touch some-file~", + "git status | grep some-file" + ], + "help": "http://www.kernel.org/pub/software/scm/git/docs/gitignore.html", + "tags": [ + "config" + ] } ] } -- 2.26.2