Is there an easy way to add a link to the Mac OS Finder toolbar that will open up SourceTree for the current folder (if it contains a git repo)? I've done this with Textmate and the terminal (shown below). The addition of a git GUI would complete the trifecta!
It's simple to make an application with applescript and drop it to the finder toolbar.
on run tell application "Finder" set theFolder to (the folder of the front window as alias) if (exists folder ".git" of theFolder) then tell application "SourceTree" activate open theFolder end tell end if end tell end run
But every time you get a "want to add to root" question.
Are there commandline options for SourceTree to just open a git folder?
The 'stree' command line tool will open the current directory or any paths it is given on the command line. You can install it using the menu option 'SourceTree > Install Command Line Tools' on the direct download version of SourceTree, or get the supplemental binary for the App Store version from here http://downloads.atlassian.com/software/sourcetree/SourceTreeAppStoreCmdLineToolInstaller.pkg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The command-line version: on run tell application "Finder" set theFolder to (the folder of the front window as alias) if (exists folder ".git" of theFolder) then set theFolder to quoted form of POSIX path of (the folder of the front window as alias) do shell script "screen -dmS sourcetree-droplet bash -c \"cd " & theFolder & "; /usr/local/bin/stree\"" end if end tell end run This still opens "Create Bookmarks?" window.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The command-line version:
on run tell application "Finder" set theFolder to (the folder of the front window as alias) if (exists folder ".git" of theFolder) then set theFolder to quoted form of POSIX path of (the folder of the front window as alias) do shell script "screen -dmS sourcetree-droplet bash -c \"cd " & theFolder & "; /usr/local/bin/stree\"" end if end tell end run
This still opens "Create Bookmarks?" window.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The command-line version:
on run tell application "Finder" set theFolder to (the folder of the front window as alias) if (exists folder ".git" of theFolder) then set theFolder to quoted form of POSIX path of (the folder of the front window as alias) do shell script "screen -dmS sourcetree-droplet bash -c \"cd " & theFolder & "; /usr/local/bin/stree\"" end if end tell end run This still opens "Create Bookmarks?" window.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you don't have a bookmark for the opened repo then yes, you'll get an option to create a bookmark.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here is a good solution that contains an "Open in SourceTree" app that can be dragged and dropped in the toolbar of Finder:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In 1.3 if you right-click a folder in Finder and go to 'Services' there is an option 'Open In SourceTree'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I would like to know this too...
GitX has one, maybe get the sourecode there to build one for SourceTree.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I would like to know this too...
GitX has one, maybe get the sourecode here to build one for SourceTree:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.