Is there any way I could make Sourcetree portable?

Beginner to source control here so this might be a stupid question, but I noticed that you can select to download Git 'just for Sourcetree' and it got me wondering if you could install this program on a USB stick and run off it. Is there any way that could work?

I'd like to use Sourcetree at my university but they reset the computers every day and reinstalling each time would be a bit annoying.

13 answers

1 accepted

This widget could not be displayed.

(Assuming Windows version here)

You could run SourceTree just from a file location so long as the entire contents of the install directory are in there, and provided the machine has the .Net 4.5 framework installed. To avoid downloading a Git install each time, the machine would also need to have Git installed, or you would need to have that on the USB stick too and your PATH set up to include it.

This widget could not be displayed.

To anyone whom needs an immediate copy of SourceTree, but does not have the needed administrator rights:

Step 1.

Verify yourself by opening cmd and executing SourceTree_xxx.exe /? and you should see the /extract switch.

Using SourceTree_xxx.exe /extract will dump the raw contents into the current folder, I was not able to specify a custom directory, but this may be a network drive issue.

Step 2.

If you tried installing the normal way, you might have seen the UAC prompt parameters it was launched with, showing the extracted directory of the MSI, but it was missing the data1.cab that gets extracted after Admin Rights are verified.

https://github.com/activescott/lessmsi/releases/tag/v1.2.0

This tool simply extracts MSI installers, but needs the data1.cab that we got from step one. Drag the SourceTree.msi file onto the application and extract

Done.

Instant useable SourceTree!

I think you missunderstand the definition of "portable". Installation is not important, it's the settings that has to be saved/used in the same directory where the program is.

You are correct that nothing was changed to make it portable, thus I have removed that word, but my settings always seem to transfer with the application, at least if the software detects it wasn't installed normally. This happened to my dismay when I copied it to someone else's workstation and it had my credentials still active, along with active repositories, referencing projects that didn't exist on the machine.

works without a flaw for me, thanks!

Worked like a charm for me...

perfect, thanks!

This widget could not be displayed.

It needs 3-4 lines of code to add to make it fully portable. Why is so hard to be incorporated is beyond common sense.

The logic behind portable apps is first to check for config files in the same directory the program is installed into (let's say it's in separate folder "config") and use them, otherwise fallback to default %USERPROFILE%\AppData\Local

Or make a new setting in config file that would control that.

This widget could not be displayed.

+1 for a portable version that will support updating itself.

This widget could not be displayed.

+1 for portable!

This widget could not be displayed.

(Assuming Windows version here)

You could run SourceTree just from a file location so long as the entire contents of the install directory are in there, and provided the machine has the .Net 4.5 framework installed. To avoid downloading a Git install each time, the machine would also need to have Git installed, or you would need to have that on the USB stick too and your PATH set up to include it.

This widget could not be displayed.

+1 for making a portable version for Windows, main competitor does it, check out SmartGit

http://www.syntevo.com/smartgithg/download

This widget could not be displayed.

+1 for portable! I have an install that has become very corrupt. Have tried reinstalling, clearing appdata, registry data, etc. The program still crashes every time I run it. Hoping for a portable version that will stop trying to use whatever corrupt data the program has on my machine. Would like to be able to bring it to work, also. Where I don't have install privilages.

This widget could not be displayed.

+1000 for portable!

This widget could not be displayed.

I've made SourceTree 1.6.12 portable based on PortableApps.com Launcher 2.2. You are welcome to test it. SourceTreePortable

This widget could not be displayed.

Any news on an official Atlassian portable Sourcetree?

This widget could not be displayed.

The new version can be installed on c:\users\...\appdata\local folder. So, you don't need to be a system admin to install it anymore.

Is it "can be" or "will be"?

Last time I've checked SourceTree become the absolute opposite of portabiity with it's forcibly installing itself in the location of no-user-choice whatsoever, without even asking!

Sticking with v1.9 from now on, which is still can be somewhat portable.

This widget could not be displayed.

I'm going through the new-machine hell (installing everything, configuring everything, making everything work the way my previous machine did...) - it's a royal pain.

+1 +1 +1 for a portable version.

Portable apps are simple - just copy to the new machine and everything just works.

Everything else is a pain, and a time-waster.

Note:  I'm looking at alternatives to any app not available in a portable version.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Sep 17, 2018 in Teamwork

The tools we make for teams? We use them every day at Atlassian to get shit done (and it works).

I’m Jess, a Product Marketer for Jira Software Server and Data Center, and now a huge fan of our products. Read on for a 90 day, new-hire perspective on what it’s like to standardize on the Atlassian...

151 views 0 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you