Inspired by Rein Henrichs Hack && Ship, I have created Git-O-Mator.
Git-O-Mator is more name than these 2 simple scripts deserve, but what fun is naming small?
Git-O-Mator can be found on GitHub, and contains the scripts new_repo and hack.
New_repo
New_repo was originally mentioned in the last blog post "Quick Remote Git Repository Creation Script", and has the syntax of:
new_repo fooWhich will create a Git repository locally and on a remote host account that you configure.
Hack
Hack is very similar to Hack && Ship. Syntax is:
hack onThis will automatically switch to the default branch which you can easily configure. Alternatively you can use:
hack on fooWhere "foo" is the name of the specific branch you wish to use. If the branch does not exist, it is created.
To rebase with the master, you have:
hack syncTo merge and push to your remote repository:
hack pushIt also supports Rein's ssp (Simple Software Process) with:
hack sspWhich is equivalent to hack sync && hack push. If you prefer hack sync && rake && hack push, then you may use the -t flag for testing:
hack ssp -tSilly little experiment. If you see room for improvement, feel free to fork and improve!
1 comments:
Very cool, Justin. Very cool.
Post a Comment