Git Bundle
You may have read that a lot of prominent people have recently moved to Git and are loving it. I too am one of those who fancy this new kid on the block but never got very far with the bundle I started for it.
Fortunately Tim Harper recently picked up on my initial efforts and has done a great job at not only making this bundle functional but also downright impressive :)
The much improved Git bundle can be found at Gitorious and discussion about it can be directed to its Google Group.
For those too lazy to click the link above, here are the short install instructions:
mkdir -p /Library/Application\ Support/TextMate/Bundles
cd !$
git clone git://gitorious.org/git-tmbundle/mainline.git Git.tmbundle
osascript -e 'tell app "TextMate" to reload bundles'
After having installed it you can press ⌃⌘T in TextMate and enter git to find the “Administration → Update Git Bundle” action. Use this to update the bundle (it will automatically reload after having performed the update).
21 Feb 2008 | # Kevin Teague wrote…
There is a nice Mercurial bundle as well, but it’s in the TextMate subversion repo so you need svn to get it - oh, the irony! :)
http://macromates.com/svn/Bundles/trunk/Bundles/Mercurial.tmbundle/
21 Feb 2008 | # A Fresh Cup » Blog Archive » Double Shot #149 wrote…
[...] Git Bundle - TextMate bindings for the new sexy source control system. With prominent projects moving to Git, I probably should figure this stuff out. [...]
21 Feb 2008 | # Chris Rohde wrote…
Hmm, after updating git bundle all the options are grayed out. Did you get a different result?
21 Feb 2008 | # Ben wrote…
Chris: do you have a file open in the editor? Most bundles are only active when one or more files are being edited…
21 Feb 2008 | # Chris Rohde wrote…
Ben: thanks, had the app open, but hadn’t selected a file. Its early, still on the first mountain dew.
21 Feb 2008 | # Petar wrote…
I have Git installed and installed the bundle also. But when I try to update I get:
Someone else also have this?
21 Feb 2008 | # Ximo wrote…
This was just what I needed, thanks!
@Petar: I didn’t get any errors when updating the bundle, might be a problem with your installation of git.
21 Feb 2008 | # Petar wrote…
I figured out the problem. My git was located in: /usr/local/bin
I hade to make a link to it in my /usr/bin with ln -s. After that everything worked.
21 Feb 2008 | # Tim Harper wrote…
I’ve pushed an update to “polish up” the update bundle command. It should fix your problem. If not, try setting the TM_GIT environment variable under the TextMate preferences dialog to point to “/usr/local/bin/git”
That’d be much preferred over the symlink fix.
I’m pleased that all are enjoying the git bundle.
Tim
22 Feb 2008 | # tonyk wrote…
Tim, thanks for this - I’m very impressed with this bundle.
I too still have to set the TM_GIT variable to get it to find git, even though /usr/local/bin is in PATH when I run a shell script from TextMate. This is with commit 583ed4ec, the latest at this time.
26 Feb 2008 | # FredB wrote…
Fair enough. ;) You can take a look at the mercurial repo of the bundle here. And now you can:
27 Feb 2008 | # Louis Theran wrote…
Awesome! I’ve been waiting for this for a while.
27 Feb 2008 | # Nick wrote…
Hi, do the git commands work across multiple sub-directories? I installed the bundle and opened up a Rails app, but it only seemed to work for the files in the root directory where the .git is located. Is this by design? or am i missing something? Thank you!
28 Feb 2008 | # Bjorn wrote…
For me it works for all files in a project if I open the folder that contains the .git files in Textmate. If I open a single file further down the tree, I get all kinds of errors.
Doesn’t bother me, since the first way is the way I work anyway :)
Thanks for this post, it inspired me to try out git and it’s absolutely perfect for what I’m doing.
28 Feb 2008 | # Rails Podcast Brasil - Epis wrote…
[...] Git Bundle [...]
29 Feb 2008 | # Solutions Log > Installing Git on OS X Leopard wrote…
[...] TextMate Blog [...]
05 Mar 2008 | # Git vs Mercurial - Why I chose Git wrote…
[...] I first heard about distributed version control systems from Allan Odgaard on the TextMate blog. [...]
05 Mar 2008 | # Rob Hudson wrote…
Cool! When will it be added to http://macromates.com/svn/Bundles/trunk/Bundles?
10 Mar 2008 | # Rob Cowie wrote…
Any plans to add patch commands to the bundle?
cheers :)
01 Apr 2008 | # Rails Podcast Brasil - Episódio 7 wrote…
[...] Git Bundle [...]
04 Apr 2008 | # Jaremy Creechley wrote…
After installing the Git bundle and it doesn’t seem to appear. I had a previous Git bundle installed which is I deleted. A Haskell bundle installed in the same location is found. I am unsure what to do or how to figure out what is different.
Thanks
13 Apr 2008 | # Fredrik Friele wrote…
This is what I get when trying to update, even though I can ping the host.
Updating git bundle
gitorious.org[0: 67.207.146.32]: errno=Host is down fatal: unable to connect a socket (Host is down)
18 Apr 2008 | # reality » Blog Archive » 網摘 - Rails on Git (持續更新) wrote…
[...] Textmate Git Bundle [...]