
OpenInGitGui is an AppleScript droplet that allows you to open Git-Gui from the Finder. Install it in /Applications/Scripts (create the Scripts directory if it does not already exist), and drag the icon to the toolbar of your Finder. Select a folder containing your git repository and click the Git icon.
Sounds easy. It is. Though I had some troubles getting it to work. The droplet assumes that git-gui is in /usr/local/git/bin (where the git-osx-installer puts it). Installing git from source, however, places git-gui in /usr/local/bin. One could modify the AppleScript source but only the binary droplet is distributed, and a soft link results in an error. So make a hard link:
sudo mkdir -p /usr/local/git/bin/
cd /usr/local/bin/
sudo ln git-gui /usr/local/git/bin/
The only remaining annoyance is that the droplet opens a scratch terminal. This could be avoided with the appropriate AppleScript call. Again, it would be nice if the source and not just the binary was provided.
{ 2 } Comments
The source is in there, just open up the application contents.
The whole reason Open in Git GUI was created because if you don’t open git-gui through a terminal, all ssl operations fail, for some strange reason. Or at least this was the case 5 months ago or so.
Let me correct that - ssl operations still fail. Just try opening git-gui with out first opening a terminal window, and then fetching from a repository over ssh.
Open git-gui from a terminal window, and fetch will work.
Post a Comment