quizzes/git: Add 'git config --global user.{name,email}' questions
authorW. Trevor King <wking@tremily.us>
Wed, 6 Feb 2013 02:58:48 +0000 (21:58 -0500)
committerW. Trevor King <wking@tremily.us>
Wed, 6 Feb 2013 02:59:31 +0000 (21:59 -0500)
quizzes/git.json

index 364e3d57801e3e50b61a7ba95cdf99b121ee381a..d3557878dbb4854567742dccc1472d8445216118 100644 (file)
@@ -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",