youngmon/atlassian-qna huggingface dataset:
ones we create a account - if possible to create multiple admin under created account
Asked by Dinesh Anton Perera:

Hi Team,

if possible to maintain bitbucket with multiple administrator account creation ?

kindly advice on this.

Thanks \& Regards,

Dinesh anton


Answers:
author: Ben
body: Hey Dinesh,

Welcome to the Bitbucket Cloud community! :)

Yes, it is possible to have multiple administrators on a given workspace, this applies to both team and personal workspaces.

Please refer to our guides below on creating/managing user groups, you will need to create a group with ADMIN privileges add users to these groups, effectively making them administrators for your workspace:

**Create Groups:** <https://support.atlassian.com/bitbucket-cloud/docs/grant-access-to-a-workspace/>

**Add Users To Groups:** <https://support.atlassian.com/bitbucket-cloud/docs/organize-workspace-members-into-groups/>

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
how to integrate azure blob to push the artifacts!
Asked by jaya_prakash_:

Hi Team,

I would like to know the process of pushing artifacts to azure blob storage for storing the artifacts like nexus, jfrog or s3, could you please guide us to achieve this.

Thanks

Jayaprakash


Answers:
author: Oleksandr Kyrdan
body: Hi [@jaya_prakash_](/t5/user/viewprofilepage/user-id/5035034)

Thank you for your question!

It's a good case for [azure-storage-deploy pipe](https://bitbucket.org/atlassian/azure-storage-deploy):

```
script:
  - pipe: atlassian/azure-storage-deploy:1.0.2
    variables:
      SOURCE: 'myfile'
      DESTINATION: 'https://mystorageaccount.blob.core.windows.net/mycontainer/myfile'
      DESTINATION_SAS_TOKEN: $AZURE_STORAGE_SAS_TOKEN
```

<br />

To discover more pipes, visit our [**Bitbucket Pipes Marketplace**](https://bitbucket.org/product/features/pipelines/integrations).  

Best regards,  
Oleksandr Kyrdan


Tags: azure

bitbucket-cloud

cloud

storage
Unable to pull code on server: App password not working
Asked by Backend Developer:

app password is not working.  
giving error like  
remote: Login failed due to incorrect login credentials or method.  
remote: If you are unsure of which login details or login method to use, visit:  
remote: <https://support.atlassian.com/bitbucket-cloud/docs/log-into-or-connect-to-bitbucket-cloud/>

i have created new app password


Answers:
author: Ben
body: G'day!

If you have configured an AppPassword but are still having issues authenticating, you will need to ensure that all of your remote configurations are updated to reflect this.

Therefore if you are authenticating to \*GIT over HTTPS\* to push/pull you will need to update your remote URL's to include the \*AppPassword\*:

```
git remote set-url origin https://USERNAME:APP_PASSWORD@bitbucket.org/workspaceID/reposlug.git
```

The same applies when performing git clone:

```
git clone https://USERNAME:APP_PASSWORD@bitbucket.org/workspaceID/reposlug.git
```

I would suggest ensuring also that all stored passwords related to authentication over GIT are cleared from your machine (ie Credential Manager for Windows, Access Keychain for Mac or /etc/shadow folder for Linux).

Hope this helps.  

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: Backend Developer
body: hi, thanks for supporting. is there any other way to access if i delete app password.

can't i use my bitbucket password.


author: Ben
body: Hey again,

The only methods for cloning are HTTPS via App Password or via making use of SSH with a public/private keypair:  
<https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/>

Cheers!

- Ben (Bitbucket Cloud Support)


author: gnana_
body: Thanks Ben for the solution.


Tags: bitbucket-server

server
Problems with account recovery
Asked by gsayer:

I'm trying to gain access to my Bitbucket account having setup MFA and discovered the issue that it's asking for 2 x MFA tokens; one for Atlassian ID and one for Bitbucket.

<br />

Having stuffed this up and losing access to my Bitbucket login I initiated the Recover request as follows:

1. Select the recovery request and receive acknowledgement that a one time link will be sent in 24hrs

2. Received the link and clicked on it which then takes me to the Bitbucket login page

3. Entered my Username and Password expecting as per the instructions that I'd be taken to the two step verification page.

4. Instead I'm asked to enter a MFA token which I don't have and also the last 24 character emergency token seems to fail

Sooooo, now stuck

Any suggestions on what to do next so I can get to my repositories

Thanks in Advance

Grant


Answers:
author: Theodora Boudale
body: Hi Grant,

Bitbucket uses Atlassian accounts (the ones for <https://id.atlassian.com/>) for authentication.

At the moment, it is possible to set up 2FA both for a Bitbucket account (from this page: <https://bitbucket.org/account/settings/two-step-verification/manage>) and also for the linked Atlassian account (from this page: <https://id.atlassian.com/manage-profile/security>).

Since you have 2FA enabled for both, I believe that you are initiating the recovery request in step 1 for the Atlassian account. Then, in step 4, you are asked for another 2FA code for the Bitbucket 2FA.

If you don't have access to the authenticator app on your phone that provides you with 2FA codes, then the process you can follow is the following:

1. Initiate the recovery request for the Atlassian account, <https://id.atlassian.com/>

After you get the recovery email and manage to log in to <https://id.atlassian.com/>, either disable the Atlassian account 2FA or set it up again via <https://id.atlassian.com/manage-profile/security>

2. The second step is to get access to the Bitbucket account. When you get redirected to Bitbucket 2FA, you will see at the bottom of the screen a link "Forgot code?". Select that in order to initiate the 2FA recovery process for Bitbucket. After 24 hours, you will receive an email. Following the link in that email will allow you to disable Bitbucket 2FA and you can then set it up again if you want.

If you have any questions, please feel free to let me know.

Kind regards,  
Theodora
Pipeline: How to collect files into build-folder before FTP upload??
Asked by Michael Hohlfeld:

Hello,

on my local computer I have a repo with php-code like this:

* index.php
* sub-folder/.htaccess
* sub-folder/.htpasswd

Because for local development and testing I have a local web server which points to the root-folder I can easily access my index.php without the htaccess-check.

But on my online-server (for other users) I want to have a result like this:

* index.php
* .htaccess
* .htpasswd

**My question: How can I do this with Bitbucket Pipeline?**

I need ideas please how to move the 2 files from the sub-folder to root-directory during the build process.

The upload via FTP is already running... here a part from my bitbucket-pipelines.yml:

```
- pipe: atlassian/ftp-deploy:0.3.7
  variables:
    USER: $FTP_USER
    SERVER: ftp.strato.de
    REMOTE_PATH: /
    PASSWORD: $FTP_PASSWORD
```

If you have better ideas instead of atlassian/ftp-deploy I'm open for ideas too :-)

PS: SFTP is not running with Strato... For ssh.strato.de there was this error message coming up \> but FTP was working:

![Bildschirm?foto 2022-11-23 um 17.32.21.png](https://community.atlassian.com/t5/image/serverpage/image-id/227319i8E51CFE1351C60D6/image-size/large?v=v2&px=999 "Bildschirm?foto 2022-11-23 um 17.32.21.png")

Many thanks :-)

Michael


Answers:
author: Michael Hohlfeld
body: any ideas on my question??


author: Michael Hohlfeld
body: **Update**

I found another solution with .htaccess which I want to share with you.

In my repo I work now with this:

* index.php
* .htaccess
* .htpasswd

And I updated the .htaccess by a host-check... Which is possible in Apache...

```
<If "req('Host') == 'domain-xyz.com'">
    AuthName "Prompt"
    AuthType Basic
    AuthUserFile /home/htdocs/domain-xyz.com/.htpasswd
    Require valid-user
    RewriteEngine On
    RewriteCond %{SERVER_PORT} !^443$
    RewriteRule (.*) https://%{HTTP_HOST}/$1 [R=301,L]
</If>
<Else>
    Require all granted
</Else>
```

So now the htaccess-protection is only used on my online server (host = domain-xyz.com), but not on my local dev environment.

**BUT**: I'm interested in a solution for my question too :-)


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Is it possible to make Pages private?
Asked by deeptowncitizen:

I have a private project and repository in it.

Is it possible to make the page for the repository private so only logged in users can access it?


Answers:
author: Syahrul
body: Hey [@deeptowncitizen](/t5/user/viewprofilepage/user-id/84867)

G'day.

By default, if the repository is private, it can only be accessed by the user who has permission to access it, which means they have to log in with Bitbucket before accessing it.

So I'm not sure what you mean by page private could you elaborate more on that?

Cheers,  
Syahrul

comments: author: dmitry.reshetnik
body: Delete


author: deeptowncitizen
body: With the private project and private repo no one can access the repo anonymously, but the project page is still public. Am I missing something?


author: Syahrul
body: Hey [@deeptowncitizen](/t5/user/viewprofilepage/user-id/84867)

Thanks for the reply.

There are a few ways to access projects, so I wonder which page you say is publicly showing, even if configured as private?

<br />

Some of the project view pages URL:

* <https://bitbucket.org/dashboard/projects>
* <https://bitbucket.org/>\<WorkspaceName\>/workspace/projects/
* <https://bitbucket.org/>\<WorkspaceName\>workspace/projects/\<ProjectID\>

Can you verify which URL is the one that shows your Project page publicly?

That said, accessing any of the above URLs will require users to log in to Bitbucket, and if they have access, they'll be able to view it; otherwise, they will see an error.

Cheers,  
Syahrul


author: deeptowncitizen
body: I think I'm using "pages" with a different meaning.

by "project page" I mean a static web page hosted within \<project-name\>.bitbucket.io


author: Syahrul
body: Hi [@deeptowncitizen](/t5/user/viewprofilepage/user-id/84867)

Thanks for the clarification.

We have a document that addresses this specific inquiry [here](https://support.atlassian.com/bitbucket-cloud/docs/publishing-a-website-on-bitbucket-cloud/#Public-and-private-repositories-and-static-websites), where the static website is accessible to anyone with the URL.

Anyone with the URL can access your Static website with or without logging in to Bitbucket because it's publicly available.

We have an old feature request to restrict private repository static websites. I highly suggest you **Watch** the feature request and add comment in it to show your interest since it's in **Gathering interest**status:

* [Authentication for static websites hosted in private repositories](https://jira.atlassian.com/browse/BCLOUD-9491)

Cheers,  
Syahrul


Tags: bitbucket-cloud

cloud

page

permission
How to use git merge drivers in Bitbucket Cloud?
Asked by Oliver CENTENO:

Good morning,

In our repository we have some files that shall be protected from merge on pull-requests.

In the server version we are using a small script as git merge driver but we don't find a way to do the same in Bitbucket cloud.

Is there any way to add custom merge drivers, or else protect some files from the merge?

Thanks in advance

Best regards


Answers:
author: Syahrul
body: Hi [@Oliver CENTENO](/t5/user/viewprofilepage/user-id/1261137)

G'day.

Based on my review, Bitbucket cloud doesn't support 'git merge drivers.' However, we do have an existing feature request that was raised previously at:

* [Support GIT Merge drivers specified in .gitattributes file per repository](https://jira.atlassian.com/browse/BCLOUD-20234)

Please **Vote** and **Watch** the feature request so that you'll receive an update whenever we have any in the future.

Cheers,  
Syahrul

comments: author: Oliver CENTENO
body: Thanks for both answers Syahrul, this request has only 5 votes though, i think it?s not gonna be implemented anytime soon.


Tags: bitbucket-cloud

cloud
Need Help Recovering the Deleted Repository
Asked by Rindo Randolph Michael:

Hello

One of our repositories named "\<repo-name-removed\>" got deleted hardly 6 days back and the sad part is we dont have its local backups. Is there any way to restore the repo?? It would be a great help if the Atlassian Tech team can help us in this scenario!

FYI: This is our workspace link \<workspace-id-removed\>.

Deleted Repo Link \<repo-url-removed\>

We even hosted the repo under AWS Amplify and the webiste is currently up and running!

Anyone Pls help us to sort out the issue!


Answers:
author: Theodora Boudale
body: Hi [@Rindo Randolph Michael](/t5/user/viewprofilepage/user-id/5086141),

I'm afraid that the repository is no longer available to be recovered within our systems, please refer to:

* <https://confluence.atlassian.com/bitbucket/does-bitbucket-backup-my-repository-288658413.html>

If any of the users with access has a clone of the repo on their machine, you can restore the repo from that local clone. Otherwise, if you have the source code files of the repo on AWS, you can use them to create a new repository.

I would suggest looking for a backup solution so that you can restore the repos yourselves in the future, in case of accidental deletion. You can look into the apps available for Bitbucket Cloud in Marketplace: [https://marketplace.atlassian.com/search?hosting=cloud\&product=bitbucket\&query=backup](https://marketplace.atlassian.com/search?hosting=cloud&product=bitbucket&query=backup) . You can also write a script that makes a mirror clone of the repo on one of your servers, and run it regularly.

Just a heads up, I removed the workspace id and repo name from your post to protect your privacy.

Kind regards,  
Theodora


author: Rindo Randolph Michael
body: Hello

Anyone there to support us?


Tags: bitbucket-cloud

cloud
SourceTree can't connect to git
Asked by Balint Nagy:

I've been using sourcetree for about 2 years now, a year in the current environment.

Recently, it started asking for github credentials over and over again. At this moment, it doesn't connect at all.

I verified my credentials by logging on to github.com.

I checked the stored credentials in SourceTree under Tools/Options/Authentication. I tried to delete the stored ones - but I can't. I tried to edit the topmost one, but the problem remains.

Any ideas how to make it work?

Edit:  
In Tool / Options / Authentication I have 3 different entries, all of them are marked as default - and I can't delete them.


Answers:
author: Balint Nagy
body: Another issue might have been that my origins were using http:// urls (as opposed to https://).  
I nuked my SourceTree settings (see <https://confluence.atlassian.com/sourcetreekb/how-to-wipe-sourcetree-preferences-412484640.html> although I found them in AppData\\Local\\Atlassian, not at the path mentioned in the article).  
After restarting SourceTree I could clone github repos again, git communication seems OK now.


Tags: git
How to stop username and password prompts every 10 seconds?
Asked by brunoimbrizi:

Please make it stop. It is infuriating. Every 10 seconds this window jumps in front of my work and begs for attention.  

![Untitled-1.gif](/t5/image/serverpage/image-id/15793i3858D90964D29AD8/image-size/large?v=v2&px=999 "Untitled-1.gif")

Entering username and password does nothing. The window keeps popping up.

So far I have tried:  
- removed all credentials from Tools \> Options \> Authentication  
- removed all github from Credential Manager \> Windows Credentials  
- Tools \> Options \> Git \> Update Embedded Git  
- Tools \> Options \> Git \> Use System Git  
- downloading Git Credential Manager for Windows  
- closed SourceTree, entered \`git fetch\` then password via command line, restarted SourceTree  

Nothing worked.   

Help please. Fix it please.  

It only happens from SourceTree.


Answers:
author: minnsey
body: Hi   

I think you might have been hit by GitHub removing TLS 1.0 and 1.1 support <https://githubengineering.com/crypto-removal-notice/>  

If you haven't already please update to Git 2.16.0 or higher.
can not log in to my Atlassian account
Asked by Serhii_Stetsenko:

Log in with Atlassian account

We tried to load scripts but something went wrong.

Please make sure that your network settings allow you to download scripts from the following domain:

**<https://common-admin-cdn.atlassian.com/atlassian-id/front-end/2.4.11>**

What should I do to continue the installation?


Answers:
author: Nic Brough -Adaptavist-
body: Have a look at your network, and make sure it can reach and read data from **[https://common-admin-cdn.atlassian.com/](https://common-admin-cdn.atlassian.com/atlassian-id/front-end/2.4.11)**

comments: author: Serhii_Stetsenko
body: Thanks for the advice, but I can not understand what to pay attention to. Tell me in more detail if possible.  
grateful


author: Nic Brough -Adaptavist-
body: I can't tell you anything more. Your computer needs to download things from that web site. Your computer cannot reach it, because your network is blocking it, or not able to find it.

You might want to look at the browser's error console, but I suspect it will just tell you the network cannot reach that site as well.

You need to fix your network, such that it does allow your browser to get to that site.
Error cloning, pulling or pushing to GitHub repositories
Asked by David Erill:

Always the message is:

unable to access '<https://github.com/Giswater/docs.git/>': error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version  

It happened me on Friday. I haven't done anything special or change permissions to my repositories. I also downloaded last version of SourceTree


Answers:
author: minnsey
body: Hi   

I suspect you have been hit by GitHub removing support for TLS 1.0 and 1.1 protocols. Please ensure you are using Git 2.16 or higher.

comments: author: minnsey
body: FYI see <https://githubengineering.com/crypto-removal-notice/>
Read echos from hooks / manage hooks
Asked by Enrico Mensa:

Hello guys.

I'm quite new with git hooks, so sorry if my question sounds dumb.

I've got a bare repo on my server, and I've set up a post-receive hook to automatically checkout the bare repo to my production directory. Then, in ST, I've set up a remote that writes to the bare repo.

This is the hook:

```
#!/bin/bash
while read oldrev newrev ref
do
if [[ $ref =~ .*/master$ ]];
then
echo "Master ref received. Deploying master branch to production..."
git --work-tree=[prod_dir] --git-dir=[repo_dir] checkout -f
else
echo "Ref $ref successfully received. Doing nothing: only the master branch may be deployed on this server."
fi
done
```

\[prod_dir\] and \[repo_dir\] are correctly set to the directories for the production and the bare repo.

Everything was working good, until I started to change the hook, specifically I added the command for composer to update just under the git command. I performed a push, and the checkout didn't work out (my production directory was not updated).

I then read online that I should place any other command right under the \`done\`.

Now, I've got a two questions:

1) Is there a way to get the echos from the hook directly in output of ST?

2) Is the post-receive hook triggered if the bare repo is already updated? Because after my first push (that failed) I started to edit the hook in order to test if something was wrong in there, and I kept pushing (ofcourse nothing changed in the files so the status was \[up to date\]). I tried to do some random stuff, such as echoing "hello" into a file, but nothing happened. I suspect that when everything is up to date, the hook is not triggered.

Thank you!


Answers:
author: Mike Corsaro
body: Hello!

1. All "echos" will output in the output in Sourcetree. To ensure you even see that output, make sure "Tools \> Options \> General \> Always display full console output" is checked. You should then see the output from the hook
2. That's a git-specific question, but if I had to guess it probably won't do anything if there isn't anything to push. You could commit using "--allow-empty" though, and then push (you'll need to do that via command-line as Sourcetree doesn't have a setting for that though)

comments: author: Enrico Mensa
body: Thank you for your suggestion.

I've activated the 'Always display...' (was in the advanced tab).

I'm pretty sure that the echos were not shown tho, I'll have to verify on my next commit.

In the meanwhile, thank you.
error: cannot spawn sh: No such file or directory
Asked by Fixious:

I've been having issues all day and need some assistance. I've uninstalled/reinstalled Sourcetree and GIT several times but keep getting a number of errors.

On my latest install I let SourceTree install an embedded version of GIT, hoping that would make a difference. It didn't.

I'm trying to clone a remote repo which I've done in the past without issue, but ever since doing a factory reset of this laptop I can't get it working. After adding the info and logging in, I'm greeted with [this](http://evanvolmering.com/legions/error.png):

![](http://evanvolmering.com/legions/error.png)

I'm also shown [this](http://evanvolmering.com/legions/error_lfs.png)when first opening SourceTree:

![](http://evanvolmering.com/legions/error_lfs.png)

Any suggestions? I've been batting this for hours.


Answers:
author: Steve Thornhill
body: Just a random thought - have you updated git with lfs support?

<https://git-lfs.github.com/>
Reset external diff/merge tool (KDiff3) path
Asked by dan_pse:

I am trying to set up SourceTree to use KDiff3 for the external diff tool and external merge tool.

The first time you set the menus to KDiff3 and hit OK, a dialog appears requiring you to find the location of the KDiff3 executable.

I accidentally used the Start Menu shortcut instead of the actual file, but now I can't figure out how to change the path (the dialog doesn't appear once you've initially set it).

How can I change the file path of the KDiff3.exe?


Answers:
author: minnsey
body: Hi  

If you want to do it in Sourcetree, in the Tools/Options/Diff select a 'Custom' diff and merge tool and select a random .exe then OK the Tools/Options dialog. Then re-open and change it back to KDiff3.   

That should all have the effect of overwriting and then resetting the external diff/merge settings.  

Alternatively use the git command line to clear *difftool.sourcetree.cmd* and *mergetool.sourcetree.cmd* using  

```
>git config --global --unset difftool.sourcetree.cmd

```

<br />

etc  

Then reset in Sourcetree

comments: author: Schroef
body: When you select "Custom" should it show a dialog? Also when you do set it to a different one, all the code in the fields is reset. SHould it show default code there?  

I was trying to get Custom working again and decadently changed the first one. THen remembered i had same issue before and need google what code should be in those fields.

![merge-diff-fields-reset-onchang.png.png](https://community.atlassian.com/t5/image/serverpage/image-id/90098iBB8D0BFA30715460/image-size/large?v=v2&px=999 "merge-diff-fields-reset-onchang.png.png")


author: Schroef
body: Where can i actually apply that command ?

```
git config --global --unset difftool.sourcetree.cmd
```