0
-Here are a few Sake tasks to make developing with Git easier (and some corresponding Git aliases to
0
-make invoking them easier). Install them with:
0
-Or, if you don't want to actually download this stuff, just use Sake:
0
- $ sake -i "http://github.com/eventualbuddha/sake-git/tree/master/git.rake?raw=true"
0
-Updates your current git repository, autodetecting whether you have a regular ol' git project or a
0
-git-svn project. I recommend aliasing it `git up'.
0
-Commits any changes in your current branch not yet pushed upstream AND ports 'em over to master. I use `git ci' for this one.
0
- $ sake git:open [NAME=mynewbranch]
0
-Creates a new branch off master. Think of this as opening an issue, or a new path of development. I use `git open' for this one, allowing you to call it like so:
0
- $ git open mynewbranch
0
-You can even call it without the branch name and it'll ask you for it:
0
- * Name your branch: mynewbranch
0
- $ sake git:close [NAME=mynewbranch]
0
-This is open's brother, and should be used when you finish something and have already moved it to
0
-master or upstream. If you haven't yet, don't worry - this won't eat your data. Like open, this one I alias to `git close'.
0
-Thanks to Coda Hale and everyone else at Wesabe for trying these out when I first wrote them and
0
-contributing tasks of their own, and to the Rubinius folks for giving me the idea in the first place.
Comments
No one has commented yet.