diff --git a/levels/index/new b/levels/index/new index 5c86afa..4df3930 100644 --- a/levels/index/new +++ b/levels/index/new @@ -11,6 +11,10 @@ To learn how that works, we need to learn about the "index"! In the index, we ca Initially, the index is empty. To make a commit that contains a new file, we need to add it! +[cli] + +You can use tab completion in the terminal! Start typing a filename, then press the tab key to complete its name. This will often save you some time! + [setup] echo "The candle is burning with a blue flame." > candle diff --git a/levels/intro/cli b/levels/intro/cli new file mode 100644 index 0000000..de2380b --- /dev/null +++ b/levels/intro/cli @@ -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! :) diff --git a/levels/intro/init b/levels/intro/init index 7c76983..ea0426e 100644 --- a/levels/intro/init +++ b/levels/intro/init @@ -7,11 +7,7 @@ You've been accepted to time travel school! Yay! It's your first day! Your teach "To do anything with a time machine, you first need to initialize it!" -Drag the blue card up to play it! - -[cli] - -Instead of using the card, you can also type `git init` into the black box below, and press the enter key! +Drag that blue card up to play it! [setup] diff --git a/levels/intro/remote b/levels/intro/remote index c3c5e99..a493fba 100644 --- a/levels/intro/remote +++ b/levels/intro/remote @@ -15,6 +15,8 @@ To clone the teacher's repo via the command line, you need this command: (Don't forget the dot at the end!) +To go through old commands, you can press arrow up and down. That way, you don't have to type in long commands twice. + [congrats] Welcome to time travel school! :) I'll see you for your first class tomorrow! diff --git a/levels/intro/sequence b/levels/intro/sequence index 82ef53c..aa225df 100644 --- a/levels/intro/sequence +++ b/levels/intro/sequence @@ -1,5 +1,6 @@ risky copies init +cli commit remote diff --git a/levels/workflows/sequence b/levels/workflows/sequence index d2bb0d4..1be11a8 100644 --- a/levels/workflows/sequence +++ b/levels/workflows/sequence @@ -1,2 +1 @@ pr -gitignore