projects
/
quizzer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dbbabd8
)
quizzes/git: Add 'gitignore' question
author
W. Trevor King
<wking@tremily.us>
Wed, 6 Feb 2013 21:37:59 +0000
(16:37 -0500)
committer
W. Trevor King
<wking@tremily.us>
Wed, 6 Feb 2013 21:40:01 +0000
(16:40 -0500)
quizzes/git.json
patch
|
blob
|
history
diff --git
a/quizzes/git.json
b/quizzes/git.json
index 3a6d3d5fad8cbf72dbdd5014a1b7d0226c88a88b..d8647c66899fc625d12e39f1e374da9420e0f7ee 100644
(file)
--- 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"
+ ]
}
]
}