mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2025-05-01 20:42:01 +02:00
Insert a level in the intro that forces players to use the command line
This commit is contained in:
parent
63f093189b
commit
21f55fd705
6 changed files with 37 additions and 6 deletions
levels/intro
29
levels/intro/cli
Normal file
29
levels/intro/cli
Normal file
|
@ -0,0 +1,29 @@
|
|||
title = The command line
|
||||
cards =
|
||||
|
||||
[description]
|
||||
|
||||
These playing cards are designed to be easy to use and to remember! We'd suggest sticking to them if you don't have a lot of experience with Git!
|
||||
|
||||
[cli]
|
||||
|
||||
But there's another way to interact with Git:
|
||||
|
||||
Try typing `git init` into the black terminal below, and pressing the enter key!
|
||||
|
||||
[setup]
|
||||
|
||||
rm -rf .git
|
||||
|
||||
[win]
|
||||
|
||||
# Initialize the time machine!
|
||||
test -d .git
|
||||
|
||||
[congrats]
|
||||
|
||||
Cool! When you don't use the cards in a level, you'll get a golden sparkling "command line badge"! See it in the top left?
|
||||
|
||||
The command line is pretty powerful! Often, you can use it to solve tasks faster compared to using a graphical interface.
|
||||
|
||||
It's also totally optional in this game. But if you want to learn how to use Git from the command line, we invite you to this challenge! :)
|
Loading…
Add table
Add a link
Reference in a new issue