CARVIEW |
cypher / thor-git
- Source
- Commits
- Network (3)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
click here to add a description
click here to add a homepage
-
Branches (1)
- master ✓
- Tags (0)
Pledgie Donations
Once activated, we'll place the following badge in your repository's detail box:
A port of sake-git to Thor. A set of Thor tasks to make developing with Git easier. — Read more

name | age | message | |
---|---|---|---|
![]() |
LICENSE | Sun May 18 14:52:11 -0700 2008 | Add a license [cypher] |
![]() |
README.textile | Tue May 20 23:45:14 -0700 2008 | Add some notes on the workflow that these tasks... [eventualbuddha] |
![]() |
Thorfile | Fri Jun 20 00:24:10 -0700 2008 | update Thorfile to work with thor 0.9.2 [dchelimsky] |
![]() |
git.thor | Fri Oct 09 01:02:43 -0700 2009 | Fix bug in #git_stash when there are changes to... [Joel Chippindale] |
![]() |
gitconfig.sample | Tue May 20 09:33:38 -0700 2008 | Fix gitconfig.example open and close aliases [cypher] |
Thor-Git
Here are a few Thor tasks to make developing with Git easier (and some corresponding Git aliases to
make invoking them easier). Install them with:
$ thor install git.thor
Or, if you don’t want to actually download this stuff, just use:
$ thor install "https://github.com/cypher/thor-git/tree/master/git.thor?raw=true"
You can add the git aliases by copying them into the corresponding section of your global .gitconfig
.
The tasks are designed around a particular workflow in which you primarily develop against a single upstream that you git-push
or git-svn dcommit
to. In this workflow master
typically mirrors this upstream, and little or no work is done on master
. Instead you branch off master with thor git:open
and then commit as you go, using thor git:push
to send your changes upstream, and finally using thor git:close
to delete the branch when you’re done with it.
Let me say it again, because it’s very important: all these tasks assume that master
is the nexus of your local branches and the portal to your remote branch.
Common Commands
$ thor git:update
Updates your current git repository, autodetecting whether you have a regular ol’ git project or a
git-svn project.
$ thor git:push
Commits any changes in your current branch not yet pushed upstream and ports ’em over to master.
$ thor git:open [mynewbranch]
Creates a new branch off master. Think of this as opening an issue, or a new path of development.
$ thor git:close [mynewbranch]
This is open’s brother, and should be used when you finish something and have already moved it to
master or upstream. If you haven’t yet, don’t worry – this won’t eat your data.
Credits
Brian Donovan (aka eventualbuddha) created the original sake-git task set, which can be found on GitHub.