Git Product home page Git Product logo

git-game-v2-cn's Introduction

欢迎来到 Git Game V2(中文版)

For English Git-Game-V2


这个仓库是 git-game-cn 的续集。 它包含九个关卡,每个关卡都教授你 git 的一项更高级的功能。 具体来说,你将学习如何使用以下命令:

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

让我们开始~

首先,先 Clone 到代码到本地:

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

Level 1

Level 1 演示了 git ls-files 命令的威力。 运行 git ls-files 命令会列出当前提交中的所有文件。 请查看文档以获取更多细节。

你能想出为什么运行标准的 Unix ls 命令不会列出当前提交中的所有文件吗?

你的任务是使用 git ls-files 命令来计算此提交中所有行的总数。

换句话说,计算每个文件中的行数,然后将所有这些数字相加以获取总数。

要进入第二关,你需要切换到以总数命名的分支。 因此,如果总数为 780,则应运行:

$ git checkout 780

提示:

你需要使用管道将 git ls-files 与其他 Unix 实用程序结合起来。

这个 This stackoverflow question 问题有一个有用的示例,可以帮助你入门。

git-game-v2-cn's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.