youngmon/atlassian-qna huggingface dataset:
Bitbucket repository access blocked by Zscalar.
Asked by niajkhan:

Hi Team,  
Since July\`23 first week, I am unable to access my code repository.  
On finding, came to know that access to it has been blocked by Zscalar Advance Threat Protection System via its Global Security Policies. We have been using Bitbucket for last 2-3 years.  
Zscalar is our company deployed Internet Security Solution. As per IT team, some suspicious content was detected in the website URL.  
Team, Please check and do the needful. Our development work is getting badly impacted.  
Waiting for the earliest response.  
Thanks  
Niaj Khan


Answers:
author: Charlie Misonne
body: Hi [@niajkhan](/t5/user/viewprofilepage/user-id/5266151)

Your IT team tells you: "suspicious content was detected in the website URL".

Do they have more details about what it suspicious exactly?

They probably need to whitelist/ allow Bitbucket in you company network. Not much the Atlassian Community or Atlassian can do about it I'm afraid.

comments: author: niajkhan
body: Hi Charlie,

IT team have just shared further details from the logs like 'Custom Reputation block...' \| Road Warrior\| bitbucket.org:443\| Malicious Content

Please organise to check and fix the issue.

Thanks

Niaj


author: Charlie Misonne
body: <https://help.zscaler.com/zia/policy-reasons> tells me this about "Custom reputation block":  
*The destination in the request is part of your Blocked Malicious URLs list and the transaction was blocked.*

See <https://help.zscaler.com/zia/policy-reasons>

Any chance your admins put bitbucket.org on a list of malicious URLs?

Know that his place is not Atlassian Support. We are community members trying to help out other Atlassian users. if you really need Atlassian to look into this you can contact Atlassian Support: <https://support.atlassian.com/>

Personally I think the Zscaler needs to be finetuned to allow Bitbucket requests but I'm no expert in that matter.


Tags: bitbucket-cloud

cloud
Get and set default branch in v2 API
Asked by Emilio Ziniades:

In the v2 API, how do I get and set default repository branches?

It is possible in v1 API, but that has now been deprecated. There are over 50 repositories, so it is not feasible to do manually.


Answers:
author: Patrik S
body: Hello [@Emilio Ziniades](/t5/user/viewprofilepage/user-id/5266244) and welcome to the Community!

To update repository settings you would usually need to leverage the [Update a repository](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-repositories-workspace-repo-slug-put) API endpoint. However, I'm afraid that updating the main branch is currently not supported on that endpoint. We do have an open feature request to implement this functionality :

* <https://jira.atlassian.com/browse/BCLOUD-20340>

I would suggest adding your Vote on that feature request to give it traction, and also mark yourself as a Watcher to receive first-hand updates whenever there's any progress on its implementation.

While that feature is not available, you can change the main branch of a repository on the UI by navigating to **Repository Settings \> Repository Details \>** expand**Advanced \> Main branch**.

Thank you, [@Emilio Ziniades](/t5/user/viewprofilepage/user-id/5266244) !  
Patrik S

comments: author: Emilio Ziniades
body: Hey [@Patrik S](/t5/user/viewprofilepage/user-id/4603309) , thanks for the feedback. I have voted for the above issue.


Tags: bitbucket-cloud

cloud
Authentication is failing from AWS instance to Bitbucket git repo, not an SSH key issue
Asked by Vlad Kolev:

Trying to access a git repo like this one below from a Linux instance at AWS

<https://my_user@bitbucket.org/my_space/my_git_repo.git>

Getting 'Invalid credentials'.

I tried different users, all with valid credentials, to no avail.

It worked fine before, but I didn't try it for quite some time. No changes from my end since.

Apparently, not the SSH key rotation issue.

Any advice is highly appreciated!


Answers:
author: Theodora Boudale
body: Hi [@Vlad Kolev](/t5/user/viewprofilepage/user-id/5265949) and welcome to the community!

Are you perhaps using the account's password? We have deprecated the use of account passwords for Git over HTTPS and API. An account's password can be used only for logging in to <https://bitbucket.org/> from browser.

You will need to generate an app password and use that instead:

* <https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/>

An app password can be used along with the user's username. So, the **my_user** part in the URL needs to be the username listed here <https://bitbucket.org/account/settings/> for the account you generate the app password.

Please feel free to let me know how it goes and if you have any questions!

Kind regards,  
Theodora

comments: author: Vlad Kolev
body: Thanks Theodora,

This solved the problem!


author: Theodora Boudale
body: That's good to hear Vlad and you are very welcome!

Please feel free to reach out if you ever need anything else!


author: Vlad Kolev
body: Hello,

I'm having an issue accessing another repo at the same Bitbucket account and trying to access it from the same AWS instance as the first repo. I was getting challenged for password when doing git pull. I triedrtried enter the same Application Password I use for the first repo, but it didn't work. Then I created a new Application Password for the second repo, but it didn't work either. I did all that multiple times, so issues with typos and such may be resonably rulled out. The first repo still works just fine...

Please advise.

Thank you so much!


author: Vlad Kolev
body: Okay, I've figured the issue with the second repository. The repo access URL was specifying a user which didn't create the Application Password I was using. Once I changed the access URL accordingly, the same Application password which works for the first repo started working for the second repo as well. Problem solved! :)


Tags: bitbucket-cloud

cloud
Can't upload the artifact to the target server
Asked by Yang Shen:

The artifact can't be uploaded to the target server, anyone could help us?

* The pipeline works fine 2 days ago
* The ssh public of the pipeline didn't change (checked the \~/.ssh/authorized_keys)
* The target server is alive


Answers:
author: Yang Shen
body: I have no ideas why, but it's recovered. Please help to close the question.


Tags: bitbucket-cloud

cloud
fatal: Authentication failed for 'https://prax_pritesh@bitbucket.org/prax_pritesh/web.git/'
Asked by pritesh:

Hi,

getting below error for push/pull file in bitbucket.

<br />

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks push -v --tags --set-upstream web master:master  
remote: Unauthorized  
fatal: Authentication failed for 'https://prax_pritesh@bitbucket.org/prax_pritesh/web.git/'

Pushing to https://prax_pritesh@bitbucket.org/prax_pritesh/web.git  
Completed with errors, see above.


Answers:
author: Mike Corsaro
body: Hello! Looks like you don't have the right credentials for that repository. Do you see a login prompt when attempting to push?

If not, could you try installing the git-credential-manager-for-windows, restart Sourcetree, and then see if you get a prompt?

comments: author: pritesh
body: Hi,

Am able to sess login prompt , m entrying correct password and login id, but error the same i try many time ,but it same.

same username and password am able to login with web. same is not working with sourcetree or git bash.
Can't clong repo link
Asked by Zijing Zhang:

I can't clong the repo link which I have access to on web. It shows " this is not a valid source path/URL". Detail is "

Command: perl.exe C:\\Users\\212771652\\AppData\\Local\\SourceTree\\app-2.3.5\\tools\\svn.pl info <http://tfs-ops.resource.corp:8080/tfs/SPP/_git/SPP-MCE>  
Output:  
Error: System.ComponentModel.Win32Exception: The system cannot find the file specified

Command: git -c diff.mnemonicprefix=false -c core.quotepath=false ls-remote <http://tfs-ops.resource.corp:8080/tfs/SPP/_git/SPP-MCE>  
Output:  
Error: fatal: Authentication failed for '<http://tfs-ops.resource.corp:8080/tfs/SPP/_git/SPP-MCE/>'

"

Methods tried: 1. Update embedded git under "options" -\> shows error

2. delete all passwd in file folder -\>still same error


Answers:
author: Mike Corsaro
body: Hello! Have you added your username and password to Sourcetree? Do you get a prompt for a username+password?

I'd also recommend using the latest version as we recently added support for TFS accounts. You can add TFS accounts via Tools \> Options \> Authentication.

comments: author: Zijing Zhang
body: Hi Mike,

I did add account to Sourcetree and I have access to this link.

There is two accounts shows in Authentication.

The first one shows "Host : bitbucket.org" " Authentication: OAuth"

The second one shows "Host: Github -tfs-ops.resource.corp:8080/tfs ... etc." "Authentication: Basic"

I don't know what cause this error. Would you like to help me figure it ?


author: Zijing Zhang
body: Hi Mike,

Do you know how can I skip the account setting up process when I re-install the sourcetree.

Thanks,

Zijing Zhang
access a repository on a VM using SSH with SourceTree
Asked by BENMOHAMED Abdelkader El Mehdi:

Hello everyone, ihope your doing great !

I'm currently using SourceTree for SCM, but i had to use a --bare repository on a virtual-machine ( that i can acces using ssh), but now i need to know how to access that repository and do the usual operations (clone, fetch,pull push ...), i configured port forwarding for SSH on my virtual machine and the repository is actually on an this path :

/home/user/repositories/main_repository

I tried using ssh://user@localhost/home/user/repositories/main_repository

But it doesn't seems to work at all

Thank you in advance !


Answers:
author: Mike Corsaro
body: Hello! Which OS are you using?
Push to bitbucket not working.
Asked by Rob Michielse:

I try to push commited code from Sourcetree to Bitbucket. It ends in an error :

*git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags origin master:master*   
*fatal: unable to access '<https://stash.gto.intranet.db.com:8081/scm/l3_gtb_abl_aquarius/conf_custom_reports.git/>': **SSL certificate problem: self signed certificate in certificate chain***   
*Pushing to <https://stash.gto.intranet.db.com:8081/scm/l3_gtb_abl_aquarius/conf_custom_reports.git>*

<br />

*Completed with errors, see above.*

Any idea how to solve this?


Answers:
author: Mike Corsaro
body: Hello! This looks like it's a problem with the git server you're interacting with, so you might have better luck asking whoever runs it for help.

However, if you need a work-around you can check the setting "Disable SSL certificate validation" under "Tools \> Options \> Git"
Git merge deleting files while merging
Asked by Gopi Kirshna:

I have a master branch with 3 files, and I've created one develop branch from master. Now i deleted one file and made some changes in another file.

While merging develop branch into master the file I deleted in develop keep deleting in master as well. But i want to keep those files in master, how can I do that?

Thanks


Answers:
author: Mikael Sandberg
body: Hi [@Gopi Kirshna](/t5/user/viewprofilepage/user-id/1499852),

What you are describing is the expected result from a merge. If you remove a file in one branch, the merge will remove it in the target branch too. Please have a look at <https://jasonrudolph.com/blog/2009/02/25/git-tip-how-to-merge-specific-files-from-another-branch/> for an option to pick which files gets "merged" into master.


Tags: git
Launch SourceTree from MacOS terminal?
Asked by matthewf_ucsd:

I had set up an alias in Terminal to open sourcetree for the current-working-directory's reposotory:

```
$ alias st
alias st='open -a /Applications/SourceTree.app '
$ st . ?
```

... which would then launch sourcetree for whichever project I happen to be in. I have found this far, far more convenient than sourcetree's repo browser.

After upgrading to sourcetree 3.0, this no longer works. I can launch it with:

```
 /Applications/Sourcetree.app/Contents/MacOS/Sourcetree .
```

... however, this doesn't fork/exit, meaning I can no longer continue to use that terminal for other work, which isn't very convenient. Also, it launches multiple copies of SourceTree. Though thankfully ST is not a memory hog (like certain Electron-based developer-targeted productivity apps that I will not name...), it still leaves multiple copies of the app in the Dock, with no indication about which relates to which launched instance.

Are there any other 'launch current repo in sourcetree' shortcuts I'm missing that might work reasonably?


Answers:
author: bgannin
body: Hi [@matthewf_ucsd](/t5/user/viewprofilepage/user-id/2001641),

You can install a command line tool (*stree* ) provided with the app. The menu item (*Install Command Line Tools*) is under the application menu. The latest version available is 3.2.1 and has been verified with all standard ways of launching.

Hope that helps,

Brian Ganninger  
Principal Developer, Sourcetree

comments: author: matthewf_ucsd
body: After updating, stree still did not work.

It seems the problem is that I only ran "Check For Updates" once: Doing so installed SourceTree 3.0, rather than the most recent version. A subsequent check-for-updates brought me to 3.2, and a third to 3.2.1.

Now both stree and my previous alias work. Phew!

NB: stree seems to have an inaccurate version number, though I won't complain as long as it works.

```
$ stree --version

stree version 1.3?
```


Tags: mac

alias

shortcut

terminal
SourceTree is very slow to detect changes in local repositories
Asked by psychlist:

I'm using SourceTree 3.2.1 (225) on macOS 10.14.5.

I'm finding that SourceTree is very slow to detect changes (e.g., files that have been edited then saved) in my local repositories. It can take minutes, and I have to flip between modified/pending file views to try to 'kick' it.

I'd expect changes to be recognised immediately by SourceTree.

Any ideas? Any setting I'm missing?

Thanks!


Answers:
author: bgannin
body: Hi [@psychlist](/t5/user/viewprofilepage/user-id/3389441),

There is the "Refresh automatically when files change" checkbox in General preferences. If that's enabled and you are still not seeing the files you can hit Cmd+R to refresh which is easier than switching filters. With all that said, we are aware the tricky to balance area of file watching can be improved.

Brian Ganninger  
Principal Developer, Sourcetree

comments: author: psychlist
body: Thanks for responding, Brian. I do have 'Refresh Automatically' enabled, but I didn't know about Cmd-R to refresh: I'll try that.

Regards,  
Peter


Tags: mac
Unable to install Sourcetree on Windows 10
Asked by subhasmita_sahoo:

I am trying to install sourcetree(3.1.3) but getting the below issue..Please refer the screenshot.

![image.png](/t5/image/serverpage/image-id/58534i9762661CD11F0BA7/image-size/large?v=v2&px=999 "image.png")

and when i am trying to install .NETFramework version as mentioned getting the below issue..

![image.png](/t5/image/serverpage/image-id/58536iFE80B18CD88D381D/image-size/large?v=v2&px=999 "image.png")

I have tried with other versions as well (sourcetree and .net framework). Still its not happening.. Could anyone please help me here.

Thanks


Answers:
author: Mikael Sandberg
body: Hi [@subhasmita_sahoo](/t5/user/viewprofilepage/user-id/3145434),

Welcome to the Atlassian Community.

The .NET error message you get indicate that you are using a Windows version that does not support .NET 4.7.1, see [.NET Framework system requirements](https://docs.microsoft.com/en-us/dotnet/framework/get-started/system-requirements). You either need to update your Windows to a supported version, or use an older version of Sourcetree (2.x) that does not require .NET 4.7.1


Tags: windows
Installing Source Tree with Bit Bucket issue
Asked by Jen Niles:

I am brand new to this and I tried to install this on my computer (PC) and get a blank page at this URL that it is stuck on [http://localhost:34106/?state=authenticated\&code=M6y9qRLZSESdDbbVeX](http://localhost:34106/?state=authenticated&code=M6y9qRLZSESdDbbVeX)

No idea what to do next or how to resolve. Thank you in advance.


Answers:
author: Jen Niles
body: It eventually installed, it was strange how it hung a bit but when I went back in, it was installed. All good now!


author: Ana Retamal
body: Hi Jen, welcome to the Community!

If you're using Windows, please make sure that Internet Explorer is updated to the latest version, as Sourcetree relies on it for the authentication step.

If it's already updated and you're still experiencing this issue, we'll need you to provide some more info so we can troubleshoot your issue:

- Which Sourcetree version are you using?

- Which Windows version are you using?

- Have you already tried [Wiping Sourcetree preferences](https://confluence.atlassian.com/sourcetreekb/how-to-wipe-sourcetree-preferences-412484640.html)? Is there any difference?

- Can you send us a screenshot when you get stuck?

Looking forward to your response.

Cheers,

Ana

comments: author: hoabu
body: Not working. Same problem, that's might causing the "fatal: protocol 'git clone https' is not supported"

I am having trouble with this for weeks!


Tags: windows
Opt out of icon changes
Asked by spencer owen:

The logo on my copy of source tree has changed to a flag for an advocacy group.

I do not want Flags, political stances and advocacy groups pushed to my computer. Please respect my desktop and leave icons politically neutral.

I am not in any way opposed to the particular advocacy group, however It makes me uncomfortable that atlassian would use the real estate on my computer without a way to opt out.

I'm sure people like having dynamic software logos. You could change it by the season and have christian and jewish and muslim logos aswell as other advocacy groups for the source tree logo. Just please let me remain neutral and unaffiliated. This could be a configuration option in the preferences.


Answers:
author: Mikael Sandberg
body: See this thread on how to change the icon,

<https://community.atlassian.com/t5/Sourcetree-discussions/How-to-fix-the-Rainbow-Pride-SourceTree-Icon-w-one-Terminal/td-p/1112043>
Icon changes
Asked by Konstantin Belov:

Hello support,

Today my instance of SourceTree suddenly changed its icon to rainbow style.

Is there a way to change it back?


Answers:
author: Mikael Sandberg
body: Check out this thread about how to change the icon, <https://community.atlassian.com/t5/Sourcetree-discussions/How-to-fix-the-Rainbow-Pride-SourceTree-Icon-w-one-Terminal/td-p/1112043>

comments: author: Eric Lang
body: Is there any way to change the icon that appears with commit push notification mail? Can't seem to find any option for that.
Staging / Unstaging lines does not refresh the view
Asked by Stuart Carnie:

Clicking stage / unstage lines or stage / unstage hunk does not refresh the view. Following that, clicking again or attempting to stage other lines generates an error.

![Stage Lines.gif](/t5/image/serverpage/image-id/58236i77DE3FA844328408/image-size/large?v=v2&px=999 "Stage Lines.gif")


Answers:
author: bgannin
body: Hi [@Stuart Carnie](/t5/user/viewprofilepage/user-id/3372832),

Are the changes from a patch or from edits? Staging itself doesn't use apply typically. Please [file a ticket](https://jira.atlassian.com/browse/SRCTREE) with complete steps for QA to investigate. Our apologies for the hiccup.

Brian Ganninger  
Principal Developer, Sourcetree


Tags: mac
Diff for staged/unstaged changes
Asked by Gei?ler, Daniel:

I used to use the Version 1.8 of SourceTree for a long time but recently updated to 3.1.2.

While most of the changes are nice, I noticed that the SourceTree Diff View does not distinguish between staged and unstaged changes while merging.

On normal editing hunks or lines can be staged and unstaged at will and when selecting the staged or unstaged version of the file one will see only the staged or unstaged modifications.

Today I realized this is not true while merging. When I start a merge, regardless if the staged or unstaged file is selected the full diff is shown in the diff view.

Did I miss a option or is this possibly a bug?

SourceTree 3.1.2, git 2.21.0.windows.1 (same for 2.22.0.windows.1)


Answers:
author: Mike Corsaro
body: Hello! This is 100% a bug (good catch!) and I will file an issue for it ASAP. It will be fixed for the next release (3.2) which should be rolled out in the next few weeks.

Thanks for reporting this!

comments: author: Ryan Liu
body: The problem is back. I see this problem in version 3.4.8 and 3.4.9 on Windows 11 Enterprise. But no problem in version 3.4.6.
Re: Sourcetree logo change
Asked by Spiros Philopoulos:

This is not a new question, but an answer to those seeking one, to the still unanswered (but now-closed) question titled "Sourcetree logo change".

To change the Sourctree app icon from the imposed rainbow icon, there are two options:

1. Download in-app update 3.2.1 (I have not tested this personally).
2. For Mac, from the Terminal execute: *perl -i -p -e 's/Pridetree/Bridetree/;' /Applications/Sourcetree.app/Contents/Resources/Assets.car* \[Answer posted by Marc as a comment to <https://jira.atlassian.com/browse/SRCTREE-6724>\]I have tested personally that this works.


Answers:
author: Ana Retamal
body: Hi everyone,

As this post is not really looking for an answer, we'll close the "Answer" section.

Cheers!

Ana
Can Sourcetree for a Mercurial repo stage files or do partial commits?
Asked by Dave Anderson:

I'm looking at switching from TortoiseHg to Sourcetree so I can manage both Hg and Git from one program. I've installed Sourcetree 3.1.3 and have no problems using Git and can commit files to Hg.

Sourcetree crashes if I try and Stage files for my Hg repos, there isn't the same Staged/Unstaged view you get for a Git repo. Should \`Stage File\` even be enabled? I've submitted a BugSplat report for the crash but didn't log a [Sourcetree issue](https://jira.atlassian.com/projects/SRCTREEWIN/issues/SRCTREEWIN-12001?filter=allopenissues) as I'm not sure if this is supported. Either it shouldn't crash and Stage files successfully or the option needs to be removed for Hg repos.

This answer is very old now [Can I commit individual hunks (hg record)?](https://community.atlassian.com/t5/Questions/Can-I-commit-individual-hunks-hg-record/qaq-p/233664) The record extension it mentions is now deprecated.

I really want trying to do a partial commit for only some hunks in a file and I can't seem to do that either. I hoped if a file was Staged that becomes an option.


Answers:
author: bgannin
body: Hi [@Dave Anderson](/t5/user/viewprofilepage/user-id/2235036),

Staging for Mercurial isn't supported by Sourcetree currently. You can vote or file a new ticket in our public trackers ([Mac](https://jira.atlassian.com/browse/SRCTREE), [Windows](https://jira.atlassian.com/browse/SRCTREEWIN)) for updates.

Brian Ganninger  
Principal Developer, Sourcetree
how to revert the Sourcetree icon?
Asked by northben:

Hi,

<br />

I just noticed the Sourcetree icon has changed to a rainbow. Is there some way to switch it back to the normal blue icon that I'm used to? Here's what it looks like in the Dock:

![2019-06-19_13-47-09.png](/t5/image/serverpage/image-id/58153i8BEEE04CA496E25D/image-size/large?v=v2&px=999 "2019-06-19_13-47-09.png")

Thank you

Ben Northway


Answers:
author: Nic Brough -Adaptavist-
body: This can help - <https://community.atlassian.com/t5/Sourcetree-discussions/How-to-fix-the-Rainbow-Pride-SourceTree-Icon-w-one-Terminal/td-p/1112043>
Recently updated to version 3.1.3 and now cannot checkout a branch from bitbucket to sourcetree
Asked by Anna Salate:

I get the following message when trying to checkout a new branch from bitbucket and open with sourcetree "Error: This is not a valid source path / URL"

Is there another step I need to take to correct this?


Answers:
author: Mike Corsaro
body: Hello! This is a known bug. As a work-around you can simply use the sidebar and browse for the branch under "Remotes". If you cannot see the branch try and run "Fetch" first.

Sorry about that.