From cf4de0c6feb061a499febf06d22a0d33dc070105 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 5 Feb 2013 21:58:48 -0500 Subject: [PATCH] quizzes/git: Add 'git config --global user.{name,email}' questions --- quizzes/git.json | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) 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", -- 2.26.2