GithubHelp home page GithubHelp logo

thor-tasks's Introduction

Thor tasks

Getting started: install Thor if you haven't.

gem install wycats-thor

You can install these tasks directly from the web:

thor install http://github.com/mislav/thor-tasks/tree/master/github.thor?raw=true

If you want to inspect and try out the tasks without installing, you should clone the repo:

git clone git://github.com/mislav/thor-tasks.git
cd thor-tasks
thor list

That command will get you a list of tasks together with their usage information. So, if you like them:

thor install github.thor --as GitHub

Later you'll wish to update:

git pull
thor update GitHub

On update, Thor will try to fetch the tasks from the same source you specified during install.

That's it. And now for a bit of fun.

GitHub tasks

Imagine the most common GitHub scenario: somebody forked your project, and now you want to pull changes from it. This is where the track task comes in:

github:track mislav

A remote add, fetch and tracking branch creation happens behind the scenes:

git remote add mislav git://github.com/mislav/repo-name.git
git fetch --no-tags mislav master:refs/remotes/mislav/master
git branch mislav --track mislav/master

Saved us a lot of typing, didn't it? The create task is even better:

github:create new-repo

This asks you for your GitHub login, sends out a HTTP request to create a new repository and creates this setup:

git remote add origin [email protected]:user/new-repo.git
git push origin master
git config branch.master.remote origin
git config branch.master.merge refs/heads/master

Uploading your project to GitHub has never been quicker!

thor-tasks's People

Contributors

mislav avatar alexchien avatar

Stargazers

 avatar

Watchers

 avatar James Cloos 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.