Giter Site home page Giter Site logo

tips's Introduction

tips = man + github

tips is a man like command line tool powered by github. It shares the similar interface with man but the contents are hosted on github, meaning it is online and version-controlled.

Usage

  1. tips <name>

The following is an example of getting the tips for cal command:

$ tips cal

1. Displays the calendar for the current month
Usage: cal

2. Displays the calendar for a year and month
Usage: cal <month> <year>
Example: cal 8 2014

3. Displays the calendar for a year
Usage: cal <year>
Example: cal 2014
  1. tips <category>... <name>

The following is an example of getting the tips for git checkout:

$ tips git checkout

1. Checkout file/dir from another branch
Usage: git checkout <branch> -- <path>

2. Create a branch based on a commit
Usage: git checkout <commit> -b <branch>

3. Checkout file from remote 
Usage: git checkout origin/<branch>  -- <path>

4. Checkout a file from a commit
Usage: git checkout <commit> <path>

Tips Files

Tips files are plain text files under data folder of the repo. The structure looks like:

<repo> +
       |- data +
               |- awk.txt
               |- bc.txt
               |- curl.txt
               ...
               |- grep.txt
               |- git +
                      |- branch.txt
                      |- checkout.txt
                      |- commit.txt
                      ...
               |- sort.txt
               ...

A subfolder of data corresponds to a category, e.g. git in the example above. A <name>.txt file corresponds to a tips for <name>.

tips's People

Contributors

weidagang avatar

Stargazers

mg20400 avatar  avatar  avatar

Watchers

 avatar James Cloos avatar  avatar

tips's Issues

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.