From: W. Trevor King Date: Wed, 6 Feb 2013 21:37:59 +0000 (-0500) Subject: quizzes/git: Add 'gitignore' question X-Git-Tag: v0.1~13 X-Git-Url: http://git.tremily.us/?p=quizzer.git;a=commitdiff_plain;h=f7e6de04c02d27bf15793a2b675b263a4d7b1f30 quizzes/git: Add 'gitignore' question --- 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" + ] } ] }