Git Product home page Git Product logo

git-game-v2's Introduction

#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-v2's People

Contributors

channeljuannews avatar coldnighthour avatar hgarc014 avatar hkwan003 avatar mikeizbicki avatar

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.