tags:

views:

547

answers:

3

I LOVE using TextMate on my MacBook. It's great.

Unfortunately, I want to edit some files directly on my dev server, since it's difficult to recreate the environment locally. I'm using Git, so one alternative is to just edit locally, git commit, git push, and then git merge, but that's kind of complicated every time I want to make a simple change.

I'd rather just ... use another solution. One thing I tried is mounting a hard drive via MacFusion, and then loading that in an editor. But that's so freaking laggy/slow!

Has anyone cooked up a better solution?

+1  A: 

Try one of these methods.

see: http://wiki.macromates.com/Main/FAQ#projects

also have a look at:

http://www.gnu.org/software/tramp/

Eddy Pronk
A: 

You don't need to push every time you make simple changes; git is a distributed version control system, you commit to your local repository for the small changes. You should only push to the remote repository once you finished working on a feature/bug (or for really huge feature, a complete subfeature). Well, that's assuming you can recreate the environment; which apparently you can't.

A decent text editor can have integration with your favorite control version system; if you cannot configure your editor to commit and push from inside your editor, get a decent editor.

An even better editor can be set to save, commit, push, compile, and run your program all in one click or keypress.

Lie Ryan
+1  A: 

I use Fetch and TextMate for just such tasks. Fetch can be set to use TextMate as an external editor and can even automatically open files in TextMate by double clicking.

Saving the window in TextMate automatically pushes the file back to the server. Of course you would have to commit the changes on the server at a later time.

I'm sure most Mac FTP clients could do the same.

Scott Giese
I do the same with Cyberduck.
Barry Brown