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. Alias it to `git up' with this alias:
0
-Commits any changes in your current branch not yet pushed upstream AND ports 'em over to master.
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.
0
-Because of the way Rake handles (or _doesn't_ handle) arguments, the alias for this one is a little
0
- open = !sake git:open NAME= -- $1
0
-Allowing you to call it like so:
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. Aliases for
0
- close = !sake git:close NAME= -- $1
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.