youngmon/atlassian-qna huggingface dataset:
Merge via pull requests is getting bypassed even though merge condition exists.
Asked by bb.admin:

I have a premium bitbucket account , on my production branch I have set some rules on production-branch that check for at least 2 approvals and check for at least 1 approval from default reviewers but the user are able to merge without any approvals I need to know why it is happening.

from stage-branch to production-branch

here is screenshot of permission on branch

![branch permission.png](/t5/image/serverpage/image-id/237823i980B8A17847E861E/image-dimensions/582x214?v=v2 "branch permission.png")


Answers:
author: Ulrich Kuhnhardt _IzymesCo_
body: Hello bb_admin,

To enforce merge conditions you need to check

Branch restrictions \> Merge settings \> Prevent a merge with unresolved checks (premium)

In the settings list this will look like this

![Screen Shot 2023-02-02 at 19.44.21.png](https://community.atlassian.com/t5/image/serverpage/image-id/237837iD4E66D85B3843D01/image-size/large?v=v2&px=999 "Screen Shot 2023-02-02 at 19.44.21.png")

Your screenshot does not show the enforced option enabled.

Please try to enable it and see if that works for you.

Best, Ulrich

// [Izymes](https://marketplace.atlassian.com/vendors/1210584/izymes-pty-ltd)

comments: author: bb.admin
body: okay thanks [@Ulrich Kuhnhardt _IzymesCo_](/t5/user/viewprofilepage/user-id/4011392) I will check for this option on my repo setting.


author: bb.admin
body: Thanks [@Ulrich Kuhnhardt _IzymesCo_](/t5/user/viewprofilepage/user-id/4011392) your suggestion helped me Merging with unresolved merge checks is not allowed was missing on my setting.


Tags: bitbucket-cloud

cloud
fatal: could not read Password for 'https://kiran3023@bitbucket.org': No such device or address
Asked by kirank:

![Screenshot (7).jpg](https://community.atlassian.com/t5/image/serverpage/image-id/237813i1B403633F8F7C81F/image-size/large?v=v2&px=999 "Screenshot (7).jpg")

I am trying to push a code to bitbucket via jenkins pipeline and I have added credentials in jenkins .

output

```
fatal: could not read Password for 'https://kiran3023@bitbucket.org/': No such device or address
```

I have changed password \& added app password and tried to pushing to bitbucket account that is also not working.

help me resolving this issue ASAP.


Answers:
author: Harald Seyr
body: Hi [@kirank](/t5/user/viewprofilepage/user-id/5136121)

Please check

* [Solved: Fatal: could not read Password for 'https://userna... (atlassian.com)](https://community.atlassian.com/t5/Sourcetree-questions/Fatal-could-not-read-Password-for-https-username-bitbucket-org/qaq-p/940948)
* <https://community.atlassian.com/t5/Sourcetree-questions/Is-git-flow-broken-in-Sourcetree-2-7-1/qaq-p/728759>
* [git - Bitbucket, Windows and "fatal: could not read Password for" - Stack Overflow](https://stackoverflow.com/questions/20923193/bitbucket-windows-and-fatal-could-not-read-password-for)

There can be a ton of reasons for this, the root cause is probably specific to your client setup that is unknown to me, so I can only provide some hits you might evaluate.

Regards,

Harald

comments: author: kirank
body: Thank you for helping,

I have tried the above resolution but could not find out what is going wrong while pushing.

it is not reading/taking password to log in then push the code


Tags: atl-gruland

bitbucket-cloud

cloud
Atlassian account 2FA via API
Asked by Chris:

[@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) for 1) is there any way to get a user's 2FA status from the Atlassian account via API? I know there's a way to to get the 2FA status for Bitbucket, but curious about the Atlassian account. thank you!


Answers:
author: Theodora Boudale
body: Hi Chris,

Just a heads up, I moved your post to a new question, as a post can become convoluted if we try to address multiple users' issues/questions in one place.

Bitbucket Cloud API doesn't provide the status of Atlassian account 2FA for a workspace's members.

Are you using Bitbucket Cloud and would you like to have this info for your workspace's members?

Or are you using different Atlassian Cloud products (if so, which ones)?  
Do you have [managed accounts](https://support.atlassian.com/user-management/docs/manage-your-organizations-atlassian-accounts/)?

In case you are using different products and/or if you have managed accounts, I am unsure if this is possible via API, I will need to check with my colleagues internally. Please let me know about the questions I asked and I can find out more info.

Kind regards,  
Theodora
In Bitbucket is there a way to obtain a list of all pull requests from one story?
Asked by T:

I want to obtain a list of all requests from one release.


Answers:
author: Sean Manwarring _Izymes_
body: Welcome to the community [@T](/t5/user/viewprofilepage/user-id/5135828) !

Are you using Bitbucket Cloud, Server or Data Center?

If you are using Server/DC, and if you don't mind using an app (full disclosure that we are the vendor that built this app). You may be interested in one of our apps [Organizr for Bitbucket](https://marketplace.atlassian.com/apps/1215843/global-pull-request-organizr?hosting=datacenter&tab=overview).

The pull request (PR) branches, PR title or description are indexed as text content by Organizr. If the PR target branch name, PR title or description has a reference to the release name or Jira epic issue-key or anything that is commonly shared, Organizr will find and list the PRs that match.

The simplest scenario could be that all PRs for "Q1 Release" version are all merged to branch 'release/q1'.  
Then Organizr can find all PRs with this query: "target = release/q1"

You can read further into the Organzr docs [here.](https://izymes.com/documentation/organizr-docs/)

I will have a look/play around later today to see if there are any other solutions that might work as well.

Cheers - Sean


author: Mikael Sandberg
body: Hi [@T](/t5/user/viewprofilepage/user-id/5135828),

Welcome to Atlassian Community!

No, you would need an app for that, I did a quick search in the Marketplace and it looks like [Awesome Graphs](https://marketplace.atlassian.com/apps/1210934/awesome-graphs-for-bitbucket?hosting=cloud&tab=overview) might be able to do it. Back in the days when I used Bitbucket Server I created my own web app that generated a report will all pull requests related to a release.

comments: author: T
body: Okay, I'll take note of that sadly. I would have loved to see that app for what I'm trying to do now. Thanks for the feedback!


Tags: jira
Archive Not available in Repo Settings
Asked by Michelle Ray:

I am following the instructions to archive a repo in BitBucket and in the "Manage Repository" menu I can only delete or transfer, not archive. Is this because we have a low level account? I'm the Admin for the entire account.


Answers:
author: Theodora Boudale
body: Hi Michelle and welcome to the community!

I'm afraid that there is no way to archive a Bitbucket Cloud repository at the moment. This feature is only available in Bitbucket Server / Datacenter (self-hosted instance).

We have a feature request for the ability to archive repos in Bitbucket Cloud as well:

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

You can add your vote to the feature request (by selecting the **Vote for this issue** link) to further express your interest. You are more than welcome to leave any feedback, and you can also add yourself as a watcher (by selecting the **Start watching this issue** link) if you'd like to get notified via email on updates.

Implementation of new features is done as per our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) and any updates will be posted in the feature request.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Infinite GIT Processes Spawn Crashing Windows
Asked by Jesse Robinson:

I updated Sourcetree recently and it said I should update my embedded GIT to GIT LFS which I tried to do through Sourcetree. The install hung and my computer was lagging out so I checked the process explorer and there were a ton of GIT processes being spawned until the computer basically ran out of memory. I've uninstalled and reinstalled Sourcetree and it is not fixed. I tried to install GIT manually but still no fix.

Any idea of what files I need to blast away to get rid of the corrupted embedded GIT install on my machine so I can run Sourcetree again?


Answers:
author: Gonchik Tsymzhitov
body: Hi Jesse,

Have you tried on other repo?

Any info in the logs Events.msc?

Cheers,

Gonchik Tsymzhitov

comments: author: Jesse Robinson
body: I couldn't even open sourcetree so I don't think it was a specific repo. It would start opening the GIT processes immediately upon starting it (and even installing). I figured somewhere the GIT install was still around so I googled around a bit and found this thread and erased everything inside the GIT folder, uninstalled Sourcetree, installed GIT manually, and then reinstalled Sourcetree, it appears to be working now.

<https://community.atlassian.com/t5/Sourcetree-questions/SourceTree-embedded-git-can-t-be-automatically-installed/qaq-p/662857>


Tags: git
Getting weird output on merge conflict
Asked by Dave Sky:

I've dealt with merge conflicts on command-line, GitHub for Windows, and Git Extensions, but not in SourceTree (and I'm using it for Mac now), and I can't tell if what I'm looking at is a bug or something else.

The first character on each line in "Hunk 2" are showing in green in the same column as the plus symbol (+)... I'm having trouble merging or fixing a conflict, so I reverted and looked at one of the commits having a conflict, and the changes made (deletions) show in red but then the first character of each line also show in the same column as the minus symbol (-) in red. I'm not making sense of this.

Do I need to reinstall SourceTree or is this a bug or what?

![Screen Shot 2018-06-28 at 8.36.37 AM.png](/t5/image/serverpage/image-id/25673i810F55CA94F7EAB7/image-size/large?v=v2&px=999 "Screen Shot 2018-06-28 at 8.36.37 AM.png")


Answers:
author: Manju
body: That seems like an odd bug. Can you please submit a ticket with the patch for us to load the same diff to locally reproduce on <http://jira.atlassian.com/projects/SRCTREE/issues> ?

Thanks!

comments: author: Dave Sky
body: I can't give you proprietary company source code, but I could type up a fake Lasso script file as easily as you could to reproduce the results.

Do you want to try before requesting that I do it? You probably only need a few lines.
Sourcetree enterprise with GIT installation
Asked by Maikel:

I have installed sourcetree ENTERPRISE version and seperate GIT (from git-scm.com). But after install and clone a repository i got the following error message

![embedded.JPG](/t5/image/serverpage/image-id/25652i52CD5DA466580960/image-size/large?v=v2&px=999 "embedded.JPG")

But when i look at the Tools -\> Options -\> Git

I already use the embedded version

![embedded2.JPG](/t5/image/serverpage/image-id/25653i57B75664176F5744/image-size/large?v=v2&px=999 "embedded2.JPG")

But it state it is using the SYSTEM version ????

How to fix this?


Answers:
author: Manju
body: You seem to be using a version of git you have manually installed in your system and that doesn't have LFS in it. You are using System Git and not embedded git. You can either download Sourcetree's embedded git which comes with lfs or install git lfs on your PC. You can follow the steps [here](https://help.github.com/articles/installing-git-large-file-storage/#platform-windows) to install Git LFS.

comments: author: Maikel
body: That is correct i have manually installed git. Because we are using the Enterprise version. We can not use the other version of sourcetree because you can not deploy that version with SCCM without making an account first and we need to make an account last in the installation process. As you can see on the picture there is a GIT LFS version installed on the system V2.4.2.

As said before (you can also see on the picture) it is showing we are using the embedded version because the embedded button you can not select. But on the picture you can also see the system version is running ????

![embedded3.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/25728i27A23984DD5A8B91/image-size/large?v=v2&px=999 "embedded3.JPG")

So what are we running the system version or the embedded version?


author: Manju
body: You are running system git. I'm sorry about the misunderstanding. I did not notice the lfs version there. Can you please file a ticket on <https://jira.atlassian.com/projects/SRCTREEWIN/> for us to check if this is an issue with the lfs alert and fix it. If everything is already installed, you can safely cancel the alert and ignore it.

Thanks!
I can clone a repository on my local computer but cannot push changes to remote repo.
Asked by FizzaTahir:

I am able to log into bitbucket using my single sign on atlassian account.

I am also able to clone repository without any problem

but when i try to push the changes to remote repo, a pop up appears asking for password but it does not accept atlassian account password.

my atlassian account is username@somecompany.com

whereas bitbucket asks for password for username@bitbucket.org


Answers:
author: Yogesh Mude
body: HI [@FizzaTahir](/t5/user/viewprofilepage/user-id/1571290)

Welcome to the community!

Are you using Bitbucket On Demand or Premise?

comments: author: FizzaTahir
body: what is the difference between both, I am sorry i am new to this so don't really understand the jargans.


author: Yogesh Mude
body: I mean is that are you using Bitbucket server or BItbucket Cloud?


author: FizzaTahir
body: BitBucket Cloud


author: Yogesh Mude
body: Ok, then while pushing the code to the remote repo, it will ask your password.

so you need to provide the Bitbucket cloud account password.


author: FizzaTahir
body: i have logged into bitbucket cloud using atlassian account password.

There is no other password and it is not accepting the atlassian account password.


author: Yogesh Mude
body: The username and password you are using to logging for Bitbucket cloud right? the same password you need to provide.  
Just try to log out and log in one more time and see.


Tags: git

login
Win7 install problem
Asked by rHedman:

I tried to install latest version, it faild. I sent a bug report. Then I tried to install older version and got this??? Tried to enpty browser - did not help.

Regards, risto![Capture.PNG](/t5/image/serverpage/image-id/25651i9D370E5573721B20/image-size/large?v=v2&px=999 "Capture.PNG")


Answers:
author: minnsey
body: Hi  

Sourcetree uses a WPF control to render the webview you are seeing, this in turn relies on Internet Explorer and its settings.  

If you can login to <https://id.atlassian.com> from Internet Explorer successfully the registration stage in Sourcetree should work,  

You might need to check your IE settings as follows:  

1. open Internet Explorer
2. open the Developer tools, f12
   1. set the Browser Mode 10
   2. set the Document Mode Standards
3. open Cog/Internet options
   1. ensure the following settings are enabled
   2. Misc/Access data sources across domains
   3. Misc/Allow META_REFRESH
   4. Scripting/Active Scripting


Tags: windows
Sourcetree reboots my computers
Asked by Magnus Beischer:

I have used Sourcetree for a couple of yearas. No problems until recently. When I start Sourcetree my PC reboots (like pressing the reset button). This happens on two different computers.

Windows 10

Sourcetree 2.5.5, 2.6.8 and 2.6.9.


Answers:
author: Mike Corsaro
body: Hello! I've never heard of something like this -- but is there anything special about either of those computers? Anti-virus, or group policy setting, or anything like that? Do any other applications cause this to happen?

comments: author: Magnus Beischer
body: No special about this computers. Standard Windows 10. No extra anti-virus other than what's included in Windows 10. The first computer is a home made Intel i7. The other one is a Intel NUC i7. I am admin of the computers.

It is just the Sourcetree app that is causing the computers to do a reboot.


author: Mike Corsaro
body: Are you getting a bluescreen, or does your PC just restart without any error?


author: Magnus Beischer
body: Just a restart. No bluescreen.
[BUG]Sourcetree still need commit files which already ignored
Asked by Alan Loar:

Hi,

I'm ellan.

I have two file both are add to repo ignore list. One .vcxprj file and another is .gitignore itself (through add it in file .git/info/exclude). Cause both two files were already tracking, I ran update-index --assume-unchanged \<filepah\> in the bash. And the "File Status" tab seems OK as Nothing to commit.

and there is output about git status

**On branch master**   
**Your branch is behind 'origin/master' by 72 commits, and can be fast-forwarded.**   
**(use "git pull" to update your local branch)**

nothing to commit, working tree clean

But when I tried to checkout a remote branch of this repo. A error comes up,

**error: Your local changes to the following files would be overwritten by checkout:** ****.gitignore**
**VS_2012/DSO/DSO/DSO.vcxproj**
**Please commit your changes or stash them before you switch branches.****

**The Sourcetree version 2.4.8, Git 2.15.0.1, Win7 x64**


Answers:
author: minnsey
body: Hi  

I don't think you can do what you are trying to do in that way.  

I'm assuming you want to effectively have Git forget about the vcxproj file and stop tracking it.  

By adding it to the .gitignore you simply telling Git to ignore it from this point on, but other branches etc will still track it, hence the conflict when merging.  

<br />

See here for some more suggestions:  

<https://stackoverflow.com/questions/1274057/how-to-make-git-forget-about-a-file-that-was-tracked-but-is-now-in-gitignore>  

<br />

see also <https://www.git-scm.com/docs/git-update-index>  

*Git will fail (gracefully) in case it needs to modify this file in the index e.g. when merging in a commit; thus, in case the assumed-untracked file is changed upstream, you will need to handle the situation manually.*

comments: author: Alan Loar
body: Thank you for the infomations very much.
Connecting Source Tree to Bitbucket Server Fails for credentials for version 2.5.0 onwards
Asked by Calvin Thomas:

Good afternoon

I've recently updated SourceTree from version 2.4.8 to the latest version and have found that for any version 2.5.0 or after I am unable to connect SourceTree to my BitBucket server instance. Downgrading SourceTree immediately resolves the problem.

The error I receive is:

"Failed to check login for user \[username\] Insufficient authentication credentials. Sourcetree was unable to find a password for user 'username' at 'HOSTNAME'"

We're using Bitbucket version: 5.9.0 and attempting to use Basic authentication over HTTPS.

Any help or advice on how to resolve would be great!


Answers:
author: Mikael Sandberg
body: There is an issue logged for this, [SRCTREEWIN-8743](https://jira.atlassian.com/browse/SRCTREEWIN-8743), and it looks like they are working on fixing it.

comments: author: Calvin Thomas
body: Thank you
How to completely uninstall/remove Sourcetree from macos HighSierra
Asked by Pawe? ?ebrowski:

I cannot in any way remove Sourcetree from my mac. I removed the application from applications in finder, but my spotlight keeps finding the app and allows me to launch it. How should i proceed?


Answers:
author: Mikael Sandberg
body: Hi Pawel,

Welcome to the Atlassian Community.

SourceTree stores user data under:  
\~/Library/Application Support/SourceTree  
\~/Library/Preferences/com.torusknot.SourceTree\*

comments: author: Muhammad Naveed
body: i have deleted sourcetree because it always giving me error r invalid clone url path.  
--  
then i have search path directories , sourcetree not found in application support  
but when i try reinstall sourcetree its automatically logged in same error appearing


author: Ana?s LAPEYRE
body: Same here. Did you find a solution (if you remember it!) ??


author: ammar
body: I'm still getting this error on m1 chip


author: ammar
body: [@Ana?s LAPEYRE](/t5/user/viewprofilepage/user-id/5204362) did you able to fix it


author: Ana?s LAPEYRE
body: No, I have given up for now...


author: Muhammad Naveed
body: i have deleted sourcetree because it always giving me error r invalid clone url path.  
--  
then i have search path directories , sourcetree not found in application support  
but when i try reinstall sourcetree its automatically logged in same error appearing


Tags: mac

remove

uninstall
Sourcetree keeps asking for Visual Studio Online credentials
Asked by Jack Smith:

Like the title says, every time I fetch/pull/push/whatever I get a window from Git Credentials Manager for Windows asking me to log in on Visual Studio Online (where the repository is hosted). When I close the window, the operation I started works perfectly fine, so I really don't need to enter my credentials. The credential manager window also pops up when I'm not doing anything (probably when Sourcetree is refreshing automatically or something like that). This is driving me insane. I tried uninstalling the credential manager both through system git and through Sourcetree's embedded git (I'm using embedded), but I still get the popups.

How can I stop this?


Answers:
author: minnsey
body: Hi  

Can I ask if you try and fetch etc from the command line using Git for the VSTS repository do you get prompted?

Without trying to shift the blame, it sounds like it might be a Git Credential Manager, GCM, issue. The GCM ships with Git for Windows and manages the authentication, prompting for and storing credentials.  

All (?) VSTS repositories are effectively private as far as I know so the GCM must be finding usable credentials from somewhere.  

Is it possible that you have more than one credential.helper configured for Git?  
If so Git will cycle through them trying to find credentials and then prompting if necessary. It sounds like Git might be triggering one credential.helper which can't find credentials so prompts you, when you cancel that out it then tries the next credential.helper which finds good credentials and they get used.  

running *git config -l* will list the config including and credential.helper references

comments: author: Jack Smith
body: Hey, thanks for the reply. The problem seems to be fixed now. I added a manual access token to VSO, logged in with that AND logged in using my MS account in the credential manager window and it hasn't asked for my password since. Really weird behavior, but I'll take it. If I run into problems again, I'll try your suggestions.


Tags: authentication

credential

visual-studio
Constant crash on Mac while connecting to a corporate proxy
Asked by James Dobson:

I use a corporate proxy to access an internal github where our projects are stored. When I switch to the proxy connection, Sourcetree always crashes within seconds. It constantly asks for my credentials for the proxy but when I enter them (I've confirmed they are correct) it just asks over and over.

This doesn't seem to matter as I can pull and fetch either way, but only if I manage to very quickly perform it as it usually crashes within a few seconds of dismissing this dialog.

The crash log is here:

<https://pastebin.com/t6URPcZ9>


Answers:
author: Manju
body: Hi,

I've submitted this [ticket](https://jira.atlassian.com/browse/SRCTREE-5824) on our public issue tracker to investigate and fix this crash. Please feel free to watch the ticket for updates.

Thanks!


Tags: crash