Git tools is a set of useful scripts to help you do things simpler with git. I am pretty sure that they won't run on all envs. but what they really need is just a bit of really simple twicking.
Simply copy the files to your executables path! for example: $ git clone git://github.com/ktlacaelel/git_tools.git $ cd git_tools $ chmod +x git-* $ sudo mv git-* /usr/bin/
+----- | |[alias] | who = who | download = download | get-branches = get-branches | when = when | integrate = integrate |
Performs a git-pull on all locally checked out branches and brings you back to the one branch you started with.. cd my_repo git download
Will download all the remote branches and set them up as tracking branches kazu@utopia:~/dev/git/rails$ git get-branches # will checkout all remote branches that are not already downloaded .. ..
Will display all the currently checked out branches with their last-modified time. kazu@utopia:~/dev/git/rails$ git get-branches # will checkout all remote branches that are not already downloaded .. .. kazu@utopia:~/dev/git/rails$ git when 2008-02-19 02:09:55 +0000 2 years, 4 months ago 1-2-stable 2009-08-11 16:46:51 -0700 10 months ago 2-3-bench 2009-08-14 22:32:40 -0700 10 months ago experimental 2009-08-25 11:29:27 -0700 10 months ago metal_middleware 2009-09-10 17:40:19 -0700 9 months ago 2-1-stable 2009-09-10 17:41:18 -0700 9 months ago 2-0-stable 2009-11-27 13:38:46 +1300 7 months ago 2-2-stable 2010-05-16 22:23:44 +0200 5 weeks ago encoding 2010-06-10 00:00:17 +0530 9 days ago 2-3-stable 2010-06-17 22:18:12 -0700 16 hours ago master
Displays the total count of commits per author. kazu@utopia:~/dev/git/rails$ git who 3193 David Heinemeier Hansson 3084 Jeremy Kemper 1003 Joshua Peek 846 José Valim 816 Pratik Naik 736 Xavier Noria 526 Michael Koziarski 425 Rick Olson 346 Jamis Buck . . .
Performs a check out of an integration (default value is *master*) branch and merges all changes found in current branch into it. kazu@utopia:~/dev/git/rails$ git checkout develop ... Write tests ... Make changes ... Comit/Push. kazu@utopia:~/dev/git/rails$ git integrate ... Now you are in *master* branch with all *develop* aditions. ... verify conflicts and manually push! Integrating into a different branch? kazu@utopia:~/dev/git/rails$ git integrate my_other_branch
You might have some problems runing this scripts depending on your environment.
Send me a message first, fork, twick, and send me a pull request! or... file a bug?
MIT, see LICENSE file