From: W. Trevor King Date: Wed, 6 Feb 2013 02:58:48 +0000 (-0500) Subject: quizzes/git: Add 'git config --global user.{name,email}' questions X-Git-Tag: v0.1~35 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cf4de0c6feb061a499febf06d22a0d33dc070105;p=quizzer.git quizzes/git: Add 'git config --global user.{name,email}' questions --- diff --git a/quizzes/git.json b/quizzes/git.json index 364e3d5..d355787 100644 --- a/quizzes/git.json +++ b/quizzes/git.json @@ -1,6 +1,34 @@ { "version": "0.1", "questions": [ + { + "class": "ScriptQuestion", + "interpreter": "sh", + "id": "git config --global user.name", + "prompt": "configure your user-wide name to be `A U Thor`", + "answer": "git config --global user.name 'A U Thor'", + "setup": [ + "export HOME=." + ], + "teardown": [ + "cat .gitconfig" + ], + "help": "http://www.kernel.org/pub/software/scm/git/docs/git-config.html" + }, + { + "class": "ScriptQuestion", + "interpreter": "sh", + "id": "git config --global user.email", + "prompt": "configure your user-wide email to be `author@example.com`", + "answer": "git config --global user.email 'author@example.com'", + "setup": [ + "export HOME=." + ], + "teardown": [ + "cat .gitconfig" + ], + "help": "http://www.kernel.org/pub/software/scm/git/docs/git-config.html" + }, { "class": "ScriptQuestion", "interpreter": "sh",