git-game-v2

Second version of the terminal based game that teaches users git commands

  • 所有者: git-game/git-game-v2
  • 平台:
  • 許可證:
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

Run on Repl.it

#git-game-v2

This repo is the sequel to the git-game.
There are nine levels, and each level teaches you about one of git's more advanced features.
In particular, you'll learn how to use the commands:

  • git ls-files
  • git cherry-pick
  • git bisect
  • git show
  • git shortlog
  • git submodule
  • git describe
  • git log
  • git grep

Let’s begin!
First, clone this repository using the command below:

$ git clone https://github.com/git-game/git-game-v2.git

You can win a badge for completing this game!
learn more about badges here: https://openbadgefactory.com/faq

You're now ready to start level1.
Good luck!

##Level 1

The first level demonstrates the power of git ls-files.
Running git ls-files lists all the files in the current commit.
Checkout the documentation for more details.
Can you figure out why running the standard Unix ls doesn't list all the files in the current commit?

Your task for this level is to use git ls-files to count the total number of lines in this commit.
In other words, count the number of lines in each file, then add all these numbers together to get the total.

To advance to level 2 you need to checkout the branch named after the total.
So if the total number is 780 then you would run:

$ git checkout 780

Hint:
You will need to combine git ls-files with other Unix utilities using pipes.
This stackoverflow question has a useful example that will get you started.

主要指標

概覽
名稱與所有者git-game/git-game-v2
主編程語言Makefile
編程語言C++ (語言數: 4)
平台
許可證
所有者活动
創建於2015-06-08 19:38:55
推送於2023-05-17 00:15:39
最后一次提交2020-01-06 20:46:38
發布數25
最新版本名稱return (發布於 2015-06-10 20:59:48)
第一版名稱alt (發布於 2015-06-08 17:14:26)
用户参与
星數631
關注者數27
派生數86
提交數19.7k
已啟用問題?
問題數8
打開的問題數8
拉請求數2
打開的拉請求數2
關閉的拉請求數5
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?