youngmon/atlassian-qna huggingface dataset:
SourceTree command line option?
Asked by mmoore99:

Is it possible to specify a repository to open in a SourceTree command line option? If so, how?


Answers:
author: KieranA
body: Hi Michael,

If you install the command line tools from the SourceTree menu you can then run "stree" from the terminal. Here's the menu:

![](http://i.imgur.com/8l4hPdQ.png)

Hope that helps

comments: author: mmoore99
body: i am running the Windows version of SourceTree and do not see a menu command for "Install Command Line Tools". Am I missing something, or is it not available on Windows? If not available, are there plans to implement it for windows?


author: stevestreeting
body: This isn't supported yet in Windows but isn't actually that hard - you can already launch SourceTree.exe from the command line and it will automatically activate the current instance if there is one - you just can't pass a file path right now (it's only used for the Clone In SourceTree button on Bitbucket right now). Tracking here: <https://jira.atlassian.com/browse/SRCTREEWIN-394>


author: mmoore99
body: Where is SourceTree.exe located? Since it is "click once" doesn't it get located in a different place every time it is installed?


author: stevestreeting
body: Ah, good point - unfortunately ClickOnce moves it subtly every update (seems to calculate a hash to use in the folder name). You can always see the current location in the registry because of the URL handler hook, if you look under HKEY_CURRENT_USER\\Software\\Classes\\sourcetree\\shell\\open\\command


author: arkasha69
body: What's about about arguments that I can pass to stree?


author: a7madgamal
body: +1 for arguments  
i want to open the file changes history panel from the command line if possible  
or at least find help on any available options


author: klaidliadon
body: Create a stree.ps1 file in a directory contained in $PATH with this content:

```
Start-Process "C:\Program Files (x86)\Atlassian\SourceTree\SourceTree.exe" ?-ArgumentList "-f $((Resolve-Path $args[0]).toString())"
```

Then you can just call stree . or stree ../relative/path


author: Daniel Balogh
body: Bit late to the party :)

In a cmd-Window:

\[installpath\]\\SourceTree.exe -f \[path to repo\] log -\> opens in log (history) view

\[installpath\]\\SourceTree.exe -f \[path to repo\] status -\> opens in status (commit) view

\[installpath\]\\SourceTree.exe /? pops a messagebox for commandline options

BR,

Daniel
Are spare checkouts supported ?
Asked by Fr?d?ric THOMAS:

Hi,

First of all, congrats, that's a great product, really advanced and user friendly.

I was wondering if sourcetree supports spare checkouts as one of my repo has one but sourcetree doesn't seem to take it in account, everything is shown, I would expect it to show only what has been filtered by the spare config.

One more point, I'm on windows and in the panel "Working Copy Changes", if I do a CTRL+A to select all files, I can't unselect them after, even with the mouse, is there a special way to do that.

Thanks,

-Fred


Answers:
author: stevestreeting
body: Glad you like SourceTree!

We don't support sparse-checkout at this time, although I'd expect git commands that are supposed to take it into account to obey any existing configuration. It's not something I've come across before - sparse checkouts were more useful in SVN when they actually saved you network bandwidth and a lot of disk space, but since Git has all the file changes in the repo anyway (and you don't have a choice about that), it didn't really seem that useful. You're the first person to ask about it, and I had to look it up to remind myself :)

There are a few foibles about the grid control that powers the file status panel right now, I've logged this. It's a very useful MS control but it does have a few little edge cases like this, I may end up switching it out for something else if I can't resolve it.

comments: author: Fr?d?ric THOMAS
body: Hi Steve,

On big repo, like more than 2Gb, it saves memory for each git operation at least though not the bandwidth, it's true.

Long time I didn't do anything in MS but I thought they were implemented better than that :-)

Well, thanks,

-Fred


author: thinsoldier
body: Any plans to add sparse checkout to sourcetree this year?


author: davewallace
body: With the maturation of Git Large File Storage (which ST supports), this would be a good feature. I'm about 2 years off the last comment - is there any support at present?


author: Alexander Seeck
body: Unless there's another solution to the following, I agree to this feature being valuable:  

Specifically talking about Unity, most git repositories are based on the root of a Unity Projects. That means all the basic project folders would be duplicates when trying to pull such a project into an existing one. Since those projects mostly get unique from Assets/\<SDKName\> it would be great if one could keep one version of the project relevant folders and just pull in the structure from SDKName on.


author: Camille
body: +1 we would like this feature


author: placasse
body: +1 we would like this feature

Working on a huge data reposisory \~300GB with both lfs and sparse-checkout it means that the folders I don't checkout are NOT downloaded.

All the team working from home because of the covid, bandwidth really matter.

For now, doing this sparse-checkout on the console.


author: chen_xia
body: +1 i like this feature.

what is the status/progresses ?

what is the version can support?
Resize description field in commit list
Asked by glenwinters:

In the list of commits (Log/History view), I can resize all the fields except for Description. I can pull Author, Date or Commit to the right to enlarge them and make Description smaller.

Is that the normal behavior, or is it a bug that I can't change the Description field size?


Answers:
author: stevestreeting
body: The description field is a 'fill' column which means it simply fills all the space left over after the size of other columns has been set. This means when you resize the window it adapts automatically and you don't have to mess about with the column widths (generally, you want more space for the description).

comments: author: glenwinters
body: Ok. With the explanation it makes sense, but I've never used a UI like that, so I found it confusing. Thanks for the answer.


author: glenwinters
body: I'm using Windows.


author: KieranA
body: Hi Glen. Is this for Windows or Mac?
How do I configure sourcetree to work with Open SSH Aliases(or their Putty style equivalents)
Asked by Jonathan Beerhalter:

In our normal setup connecting to Gitolite, we use SSH aliases to prevent us from doing anything foolish. Then, if we need admin power we can use an admin alias. I'm having trouble getting source tree to work with this structure since it doesn't seem to look at the \~/.ssh/config file. Is there a corresponding Putty file?

For clarity, my \~/.ssh/config file looks like the following

Host gitAdmin

User git

IdentityFile \~/.ssh/id_dsa_admin

Hostname git

Host gitDev

User git

IdentityFile \~/.ssh/id_dsa

Hostname git

I got around the issue by creating new remotes for sourcetree to pull from, but that feel likes a bit of a workaround.


Answers:
author: stevestreeting
body: If you need to use aliases with the PuTTY suite then you can do so by defining 'Saved Sessions' in the main PuTTY application itself. We don't actually include this in SourceTree because we only actually require plink (the terminal SSH transport) and Pageant (the agent), but you can download PuTTY.exe via the main site: <http://www.putty.org/>

Just download putty.exe, launch it, define some settings including the host etc then give it a name on the top-level 'Session' node and click Save to create a saved session. That name should be usable as an alias with plink too after that, which is what will be used for git SSH commands.
git status 128: index file open failed. Permission denied
Asked by mirko77:

Why am I having this problem?

I cloned a repository from BitBucket, did my changes and now when I try to commit I get this error. I am on a Windows 7 machine, I am the admin and I have full control on the files I am trying to commit.

Any suggestion?


Answers:
author: stevestreeting
body: I've seen this problem intermittently (but rarely) and it's down to another Windows process locking files when it shouldn't. Windows isn't great at releasing file locks sometimes, and especially things that hook into Explorer can hold file locks well beyond their time (I sometimes can't save files from a text editor because TortoiseGit has locked a file).

If this doesn't go away on its own, I would use Process Explorer (<http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx>) to track down what's locking the file. You can search for file handles in Process Explorer using Ctrl-F and then either close or manually kill the process that is locking the file.
Commit a file in bin directory
Asked by Xavier Zwirtz:

I am using the SourceTree Windows beta, and I am trying to commit a file named "build.ps1" that is in a bin directory. I cannot for the life of me, get the file to show up in the commit window, even if I select "Show All". I dont have the bin directory in my .gitignore. Is there something special I have to do to commit this file?


Answers:
author: stevestreeting
body: Up until 0.9.0.2 there was a checkbox in the Setup Wizard that said 'Install a default global ignore file'. If you hadn't already configured a global ignore file, this was enabled by default. The intention was to help new git users avoid committing files they didn't need to, like exes and dlls.

Since the release we've realised this option wasn't quite obvious enough for people who never had a global ignore but also wanted to commit exes or files in Debug or bin directories (usually standard dirs you ignore in Visual Studio), so from 0.9.0.3 this option is much more in-your-face.

Sorry you've fallen foul of this. The way to solve it is to go into Tools \> Options \> Git and click the 'Edit' button next to the 'Global Ignore List' field. You'll want to delete entries in there that you don't want, including 'bin'.

comments: author: stevestreeting
body: Hmm, selecting 'Show Ignored' definitely should show files ignored via any means, whether that's the global ignore or the local repository settings. I just tried it here on a couple of repos and sure enough the things that were excluded by the global ignore list popped up when I selected 'Show Ignored' (these repos had their own local .gitignore too but only had a couple of repo-specific entries).

FYI 'Show All' won't show ignored files though. It's the one thing 'All' doesn't include (which may not make sense linguistically, but it does practically :))


author: Xavier Zwirtz
body: Okay, that explains it. Went into settings and looked at the global ignore, it does have bin files in it. Thats good thought, everything that is in that ignore list I normally want ignored. It doesnt look like the "Show Ignored" option shows files ignored by the global ignore though. Is it intended for it to work that way?


author: Xavier Zwirtz
body: Just went back and verified, and with "Show Ignored" selected, it will not show the files. I was bale to use the command line "git add . -f" to commit them, so I have a work around, but im definatly seeing weirdness with stuff that is global ignored not showing, even in "Show Ignored" mode


Tags: windows
source tree ssh proxy
Asked by imaffett:

Running Source Tree on Windows, and so far the UI is great. I am running into a big problem though in that it does not use my proxy setting in \~/.ssh/config

Right now, I do the commit then go to the command line to push/pull. Any way I can get Sourcetree to play well with the proxy?


Answers:
author: stevestreeting
body: SourceTree uses PuTTY rather than OpenSSH because it's a bit more Windows friendly, but does mean any custom config doesn't automatically come across.

If you need to customise settings, the easiest thing to do is download the full PuTTY.exe client from <http://www.putty.org> and launch it. Then:

1. If you want to set this up globally for all servers, click 'Default Settings' and then 'Load'
2. Go to Connection \> Proxy
3. Fill in the proxy details
4. Go back to Session, and click 'Save'.

If you didn't want to set this for all servers, you could type an session name under 'Saved Sessions' and complete the host name above before saving, then you can use that session name instead of the server name to pick up those settings. This is equivalent to setting up aliases in OpenSSH.

comments: author: imaffett
body: Thanks, this is perfect. The only thing is in step 4, you have to click "default settings" before save...took me way to long to do that.
SourceTree for windows Mercurial integration
Asked by ispooky83:

Hello,

I would like to know when is supposed to release a version of SourceTree for windows with Mercurial support.

Best Regards,

Luca Temperini


Answers:
author: pschaff01
body: Hi Luca,

Mercurial will be supported by SourceTree in version 1.0 and there is no ETA defined for this release yet, but it will be released still in this year.

For any further doubts you have, feel free to access [SourceTree's FAQ.](http://sourcetreeapp.com/faq/)

Cheers,

Pietro Schaff


author: kridan
body: Any update on this?

comments: author: KieranA
body: Updates are recorded in JIRA rather than AAC. The issue is marked as "In Progress" here: <https://jira.atlassian.com/browse/SRCTREEWIN-57>


Tags: mercurial

windows
How do I select/deselect files to commit with the keyboard?
Asked by plundberg:

Hi,

Previously (and currently) using the TortoiseHg client for Windows, which is my past experience with Hg. In that client, you can go through your list of files before commiting and press the Space key to select which ones to commit.

In SourceTree, I don't seem to find the keyboard shortcut for this. It is just me or is this function not supported?

(I tend to prefer by working with keyboard rather than mouse as much as possible.)


Answers:
author: stevestreeting
body: If you're working in 'staging' mode (the default) you can stage files for the next commit by pressing Ctrl-Shift-+ (combine with shift-keyboard or ctrl-a to do many at once)

comments: author: plundberg
body: Thanks Steve. However, as my question subtly implied, I am not using Git - our repos are using Mercurial. Is there any way to do the same thing when working in Mercurial mode?


author: stevestreeting
body: Ah, sorry when you mentioned Windows I immediately thought our Windows port (which is git only for the moment). At the moment you change the checkbox state via the keyboard, sorry.


author: Oliver Crow
body: On the Mac the shortcuts are:  

Command-Shift-+ (plus): stage selected files for commit (use the '+' key above '=', not the numeric keypad '+')  
Command-Shift-- (minus): un-stage selected staged files

These work in the log view and the file status (commit) view.

There are also shortcuts for selecting files:

Command-A: select all files  
Up arrow, Down arrow, space bar: move to and select files  

Unfortunately the keys for selecting files only work if the keyboard focus is on the files pane. I can't figure out a way to put focus on that pane from the keyboard. So close! Urgh.

comments: author: Andre Gambaro
body: There could be a way to focus on that pane (files ot staged) and also switch to other panes... nothing seem sto work.


Tags: mac
How to resolve/troubleshoot SSL Certificate problem on windows?
Asked by Akhil Malhotra:

I am using sourcetree on both mac and windows clients. My git repository is successfully cloned on Mac clients, but refuses to do so on Windows clients.

I have installed the certificate under Trusted Root Certificates on my windows machine.

When I try to clone the repository using a path that looks like "https://i.p.add.ress/git/abc" I get an error with details:
> error: SSL certificate problem, verify the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed while accessing <https://i.p.add.ress/git/abc/info/refs?service=git-upload-pack>
>
> fatal: HTTP request failed

How do I go about troubleshooting this? Please note that this works on a Mac client using sourcetree trying to clone the same git repository, using the same certificates.


Answers:
author: stevestreeting
body: Git doesn't look in the Windows certificate store for trust associations on self-signed certs. Please see the bottom section of this KB article for what you need to do in your .gitconfig to trust the certificate: <https://confluence.atlassian.com/display/SOURCETREEKB/Resolving+SSL+Self-Signed+Certificate+Errors> Obviously ignore the part about exporting from the (Mac) keychain :)

comments: author: alfishe
body: The problem exists even with valid certificates that are verified successfully.

Good example - CloudHost.io service.

Certificate is validated by any kind of SSL enabled software including browsers

This certificate was issued according to the Class 1 Validation requirements of the StartCom CA policy, reliance only for the intended purpose in compliance of the relying party obligations.

but SourceTree (Windows version) still gives an error.![Chrome verification info](http://s020.radikal.ru/i706/1402/ad/953b49aadc52.png)

TLS not supported/tested in SourceTree?


Tags: certificate

windows
Side-by-side compare with inline changes
Asked by MikeL:

How to get full side-by-side compare instead of the simple diff output?


Answers:
author: stevestreeting
body: We do this via external diff tools, click on the 'External Diff' button in the top-right. Which diff tool is used is configured in Tools \> Options \> Diff (Windows) or Preferences \> Diff (Mac).

comments: author: MikeL
body: That's bad.


author: Santi S?nchez
body: Use File Merge. It comes free with XCode.


author: SebG
body: Which mac diff tool would you advise to use please?


author: SebG
body: Which mac diff tool would you advise to use please?

comments: author: Andrija Jambrovic
body: <http://meldmerge.org/>


author: D?nes Harmath
body: See <http://apple.stackexchange.com/a/87188/8482>
Custom workflow
Asked by Lee Elenbaas:

Is there any way to customize SourceTree to activate or add as buttons the script we use for our git workflow (not git-flow - but our own custome made shell scripts)


Answers:
author: KieranA
body: Hi Lee,

We have the ability to have 'custom actions' where by you can execute any script from a shortcut within SourceTree itself. See the below screenshot:

![](http://i.imgur.com/26PnNO5.png)

So I can hit shift+cmd+E to execute this script at this particular location. There's also a blog post about it [on the SourceTree blog here](http://blog.sourcetreeapp.com/2012/02/08/custom-actions-more-power-to-you/).

Hope that helps

comments: author: Lee Elenbaas
body: It will help once the feature will be avaliable in the windows port - thanks
History: show just certain branches
Asked by MikeL:

Our repository has a lot of branches. How can I configure ST to just show certain ones in the History view?


Answers:
author: stevestreeting
body: You can currently select 'Current Branch' or 'All Branches' from the drop-down above the log. More options to just show a selected branch instead will be added in future.

comments: author: MikeL
body: Imagine a repository with a lot of parallel branches. Now you want to merge from one to another branch. By simply showing all branches you will get lost. Simply showing just one branch will not be enough.
Git-flow button not showing
Asked by Lee Elenbaas:

I have several repositories that opened with sourcetree

ONE of them uses git-flow - and i do not see the git-flow button at all in sourcetree when i am working on that repository (and of course not on any of the other repositories)

i am using the stable windows release on win8 - using system git of 1.8


Answers:
author: KieranA
body: Hi Lee,

Git-flow isn't currently supported by the Windows version. The FAQ shows what features aren't currently supported in the Windows feature as shown here: <http://sourcetreeapp.com/faq/>

Cheers
How do I install SourceTree since I am behind an HTTP proxy?
Asked by Michel Archambault:

I get the following error:

An error occurred trying to download 'http://downloads.atlassian.com/software/sourcetree/windows/SourceTree.application'.


Answers:
author: stevestreeting
body: Does your proxy use NTLM for authentication? If so, MS tell me it should work, but otherwise their ClickOnce installer tech doesn't support proxies. We're reluctantly offering an offline installer too but this will not be able to auto-update so it's not ideal. [https://answers.atlassian.com/questions/149591/is-there-an-offline-installer-for-windows-version-of-sourcetree](/questions/149591/is-there-an-offline-installer-for-windows-version-of-sourcetree)

comments: author: Michel Archambault
body: No we don't use NTLM.


author: Shailen Sobhee
body: 2017: Atlassian still hasn't figured out a way to get the product installed behind a proxy? I tried to set the proxies in a command line and start the executable(installer) from the prompt No luck either.   


author: Tim Cornwell
body: Fixed here: <https://community.atlassian.com/t5/Sourcetree-questions/How-to-install-SourceTree-through-proxy/qaq-p/642198>
page properties report macro not fully compatible with expand macro
Asked by Jesse Ram:

The page properties report macro does not display a functioning expand macro after the first page


Answers:
author: Kian Stack Mumo Systems
body: [@Jesse Ram](/t5/user/viewprofilepage/user-id/5230847),   

Can you please provide an example of what you are seeing?  

Thanks,   

Kian

comments: author: Jesse Ram
body: Hey Kian,

This is what i see(expando does not work on page 2 and greater):

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/260648i99A2F37A0E2B9E48/image-size/large?v=v2&px=999 "image.png")

But this is what I expect to see(expando working, but on page 1 only):

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/260649i47D41F0F13F8D921/image-size/large?v=v2&px=999 "image.png")

Thanks,

Jesse


author: Kian Stack Mumo Systems
body: Very strange! I would raise a ticket with Atlassian on that for sure. It looks like you may be running into this bug - <https://jira.atlassian.com/browse/CONFCLOUD-40499>

Thanks,   

Kian


Tags: cloud

confluence-cloud
Permisions
Asked by Marija Stamenkovi?:

Hello, I've created space in Confluence and I checked, admins and administrators have permission for everything, but actually, they don't see anything, and when I share with them also they can't see pages. And the strange situation is that regular users can see space and pages in that space when I share with them. Do you have an idea how I can solve this?


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Marija Stamenkovi?](/t5/user/viewprofilepage/user-id/5230624) and welcome,

please check if there is some restriction configured in the homepage or in root pages.

Fabio

comments: author: Marija Stamenkovi?
body: Hi [@Fabio Racobaldo _Herzum_](/t5/user/viewprofilepage/user-id/781528) , thank you for the idea. I tried that and everything that I could, and it worked at the end :D Now, just once, happened that when I give permission for 1 more person, the other one that had permission, losses it. But it didn't happen again, so for now everything is okay.


Tags: cloud

confluence-cloud

permission
What are all the steps you will implement when your confluence is down/slow?
Asked by Ratna Konathala:

I am unable to identify how to refresh the Confluence page, when Confluence is down or slow.


Answers:
author: Fadoua
body: [@Ratna Konathala](/t5/user/viewprofilepage/user-id/5230617)

Can you please elaborate little bit more? Because if Confluence is down you won't be able to refresh the page but if it is slow it is a different story. There are so many things to check so that the admin can locate the issue behind the slowness

Best,

Fadoua


Tags: confluence-server

server