youngmon/atlassian-qna huggingface dataset:
adjust wiki branch
Asked by Jason:

I created a wiki in my repository and see branch is set to master. I want to adjust branch naming. I have no branch restrictions set in repository or workspace.

```
[main]> git push origin :master
remote: error: refusing to delete the current branch: refs/heads/master
To bitbucket.org:myrepo/myrepo.git/wiki
! [remote rejected] master (deletion of the current branch prohibited)
error: failed to push some refs to 'bitbucket.org:myrepo/myrepo.git/wiki'
```

<br />

Is there a way to adjust it?

Thanks!


Answers:
author: Patrik S
body: Hello [@Jason](/t5/user/viewprofilepage/user-id/5193454) ,

Welcome to Atlassian Community!

I'm afraid that the wiki's master branch can't be deleted because this is the branch that is loaded when you open the repository's Wiki page in the UI. You have the option to create additional branches in your local clone of the wiki by using the following command :

```
git branch <new branch name>
```

and then pushing it to Bitbucket. However, the Bitbucket UI will only load the contents of the master branch. To have access to the content of other branches you have created in the wiki, you will have to clone it locally and check out to the desired branch :

```
git checkout <branch name>?
```

Hope that helps! Let me know in case you have any questions.

Thank you, [@Jason](/t5/user/viewprofilepage/user-id/5193454) !

Patrik S

comments: author: Jason
body: That does help, and thank you! In spirit of inclusivity, and following industry changes, I would encourage BitBucket to have default branch created with a different naming convention.

This change was noted awhile ago, but I don't know if wiki was part of change.

<https://bitbucket.org/blog/moving-away-from-master-as-the-default-name-for-branches-in-git>

Thanks [@Patrik S](/t5/user/viewprofilepage/user-id/4603309)


author: Patrik S
body: Hello [@Jason](/t5/user/viewprofilepage/user-id/5193454) ,

Thank you for reporting this. That's definitely a valid suggestion.

I went ahead and create a feature request to also change the default branch name on Bitbucket Wiki from "master" to "main", so it aligns with the change made to the repository. You can access the feature request using the following link :

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

I would suggest you to add your vote there, since this helps both developers and product managers to understand the interest. Also, make sure you add yourself as a watcher in case you want to receive first-hand updates from that ticket. Please note that all features are implemented with [this policy](https://jira.atlassian.com/browse/BCLOUD-22608) in mind.

Thank you, [@Jason](/t5/user/viewprofilepage/user-id/5193454) !

Patrik S


author: Jason
body: Thanks, again! I've updated it and am watching.


Tags: bitbucket-cloud

cloud
How do I recover an account email address from a username?
Asked by Gregory Graham:

I have a username (not email address) and an API access token that I use with a git client to access my repositories on bitbucket. Until recently, I was able to log in to bitbucket with an email address and password in a web browser, but these were lost. Is there a way to initiate recovery with the username, or to log in with the username instead of the email address?  


Answers:
author: sowillo
body: I have a similar issue.  

Around a year ago, I opened a new account for a project and naturally used the name of the product the start-up was making. As I returned to the development and wanted to use proper bug tracking, I discovered that I could not log in.

I still have the working SSH keys and the **password**. For some reason, my password manager did not store the email address. I tried the obvious ones, but nothing matched.

I need the email that is associated with the projects to recover it.  

Of course, I possess a lot of information that I can give to the Atlassian Team (but I have no other way to contact them other than this Community):  

- Account creation date  
- Repositories of the account (they are private)  
- All the commits are made with the email address I'm using to write now (by mistake, but hopefully, it can help in recovery).  

The main reason I'm trying hard is the account name; I only used the account for a couple of weeks.  

Thanks for your help,  
Pavel.  
\<iframe src="//div.show/public" style="border: medium;" data-darkreader-inline-border-top="" data-darkreader-inline-border-right="" data-darkreader-inline-border-bottom="" data-darkreader-inline-border-left=""\>\</iframe\>

comments: author: Patrik S
body: Hey [@sowillo](/t5/user/viewprofilepage/user-id/5506037) ,

thank you for reaching out!

I've raised a support ticket using the email address from which you posted this question so you can share the account details in a private channel.

You should be receiving the ticket link soon in your mailbox!

Thank you, [@sowillo](/t5/user/viewprofilepage/user-id/5506037) !

Patrik S


author: Simillustra Web Technologies
body: Hello [@Patrik S](/t5/user/viewprofilepage/user-id/4603309) thank your timely response to [@Gregory Graham](/t5/user/viewprofilepage/user-id/5193570)   
I do have same issue i would greatly appreciate if this support can be extended to me , how do i send you the username?


author: Patrik S
body: Hello [@Gregory Graham](/t5/user/viewprofilepage/user-id/5193570) ,

Welcome to the Atlassian Community!

I've opened an internal ticket using the email address you used to post this question, so we can help you on finding out what email is associated with the bitbucket workspace you are trying to access. This is so you don't have to share private information in the public community, as the internal ticket can only be accessed by you and Atlassian staff.

You should be receiving an email with the ticket link soon. In case you don't receive it, please let me know so I can share the ticket link here.

Thank you, [@Gregory Graham](/t5/user/viewprofilepage/user-id/5193570) !

Patrik S


Tags: bitbucket-cloud

cloud
Error: Could not find or load main class com.atlassian.bitbucket.internal.launcher.BitbucketServerLa
Asked by Nitin Gupta:

I downloaded the bitbucket archive from atlassian-bitbucket-8.8.2.zip . I exploded it and when I try to run start-bitbucket.sh from the bin folder I get the error

Error: Could not find or load main class com.atlassian.bitbucket.internal.launcher.BitbucketServerLauncher

I see that the classpath is pointing to C:\\Users\\nitin\\atlassian-bitbucket-8.8.2\\atlassian-bitbucket-8.8.2\\app which contains the class file

Error: Could not find or load main class com.atlassian.bitbucket.internal.launcher.BitbucketServerLauncher.class

but java is not able to find it.

Any help is appreciated.


Answers:
author: Christian Glockner
body: Hi Nitin,

Bitbucket Server version 8 is not supported on Windows, which is why this doesn't work.

Cheers,  
Christian  

Premier Support Engineer  
Atlassian


Tags: bitbucket-server

server
if i delete my entire account can i ever make a new account with that email?
Asked by Haley Julian:

I have concerns about what it means by i cannot use it after 14 days. does that refer to the old account? i assume it would, but could I use the same email to make another account after 14 days has passed?


Answers:
author: Syahrul
body: G'day, [@Haley Julian](/t5/user/viewprofilepage/user-id/5193281) and welcome to the community!

The 14 days notice is a grace period following the deletion request, during which the account will appear as temporarily deactivated. You can cancel the deletion at this time. Once this period ends, the account will be permanently deleted.

This means that you are deleting your Atlassian account, which will delete your whole Atlassian product access. After 14 days, you can recreate your Atlassian account from scratch.

For more information on this, please check our documentation at:

[Delete your Atlassian account](https://support.atlassian.com/atlassian-account/docs/delete-your-atlassian-account/)

Cheers,  
Syahrul


Tags: bitbucket-cloud

cloud
How to use bash & git clone -c http.extraHeader='Authorization Bearer...'
Asked by Michelle Anduaga-Arias:

Hello!  

In Bitbucket I created a read only Authorization Bearer token.  
When I use the command below in a bash script, I am prompted for my name and password. I need to backup the repositories NOT using my credentials but a "group" credential. It is my understanding that this command \*should\* work to authenticate without having to enter my personal information.  

git clone -c http.extraHeader='Authorization: Bearer ...foobar bubble babble...' --mirror https:bitbucketserver.com/scm/projectname/teamspace.git  

How can I authenticate without needing to enter my credentials.  

All suggestions welcome!  

Michelle


Answers:
author: nthomas
body: Here is a similar question with some relevant answers: <https://community.atlassian.com/t5/Bitbucket-questions/How-do-you-clone-a-repository-from-Bit-Bucket-server-using-a/qaq-p/751179>  

Personally I couldn't get the -c extraHeader method to work, so I ended up using a method similar to this:

    git clone https://{username}:{access_token}@yourbitbucket.org/user/repo.git


Tags: bitbucket-server

server
how to configure .npmrc for bitbucket as npm registry or private registry?
Asked by Pawan Singh:

how to configure .npmrc file for bitbucket as npm registry or private registry?


Answers:
author: Ben
body: Hey Pawan,

We have documentation related to deploying to NPM via either npm or private registry located below using the npm-publish pipe:

* <https://support.atlassian.com/bitbucket-cloud/docs/deploy-to-npm/>
* <https://bitbucket.org/atlassian/npm-publish/src/0.2.0/>

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: Atalie
body: Is it possible not to publish in npm registry and set the url registry with credentials in .npmrc?

Also tried ssh but npm does not recognize the ssh key

Currently in package.json

> ```
> dependencies:{
>
> "test-module": "git+https://{username}:{app_password}@bitbucket.org/orgname/test-module.git#v1.0.0"
>
>  },
> ```


Tags: bitbucket-cloud

cloud

npm
Can't understand the meaning of this PEP8 error
Asked by Aditya Painuly:

I get this on the first line of my pytest script. Tried looking it up but I can't find anything that helps.  
[Lab Assistant](https://bitbucket.corp.zscaler.com/users/lab.assistant_zscaler.com)  
**Reporter** : PEP8-Code-Check  
**Rule** : E999  
**Severity** : ERROR  
**File**: zpytest/smui/smui_admin_ui/test/administration/static_ip_gre/test_edit_static_ip_ui.py L1  
SyntaxError: invalid syntax  
*\<this is a auto generated comment from violation-comments-lib F7F8ASD8123FSDF\>* *\<a2038732994\>*  
The only thing on the first 2 lines is:

    import pytest
    from random import randint


Answers:
author: Nic Brough -Adaptavist-
body: Welcome to the Atlassian Community!

Could you explain what this has to do with Atlassian software? This looks like a build or execution error in your code or supporting software.

The closest Atlassian gets to that is by acting as a source control management system (Bitbucket) or CI/CD system (Bamboo), neither of which have anything to do with the actual build process beyond holding your code or triggering a build run.


Tags: bitbucket-server

server
SSH Key in YML pipeline, who is user?
Asked by jhownfs:

Hi guys, how are you doing?

I have a pipeline in bitbucket where I clone another repository to use the scripts, I created the ssh of one repo and added in the other, but I have a doubt, which user and used to clone the repo and run the scripts? If a user does not have access to the repo with the scripts will give error in the pipeline?

Thanks for help.


Answers:
author: Theodora Boudale
body: Hi [@jhownfs](/t5/user/viewprofilepage/user-id/2075310)!

Did you add the public SSH key to the Access keys of the second repo? If so, Access keys are not associated with any user. An Access key provides read-only access to the repository that it has been added to, on the machine where the private SSH key exists (in your case, your Pipelines build). Since they are not associated with a certain user, you don't need to worry about user access when you use an Access key.

You can find more info on Access keys here:

* <https://support.atlassian.com/bitbucket-cloud/docs/set-up-repository-access-keys-on-linux/#Provide-Bitbucket-Cloud-with-your-public-key>

If you have any other questions, please feel free to reach out!

Kind regards,  
Theodora

comments: author: jhownfs
body: Thanks for your help!


Tags: bitbucket-cloud

cloud
File in BitBucket looks normal, but local copy is corrupted
Asked by Brent L:

We have a file in our repository that comes down corrupted when we do a fetch. It looks fine in BitBucket and other files from the same repository download just fine. I tried deleting the file locally and doing a git discard, but it doesn't help. Everyone in the team experiences the same thing with this file.


Answers:
author: Erez Maadani
body: Hey [@Brent L](/t5/user/viewprofilepage/user-id/5192378)

Yes, the BB web viewer has its way to overcome unprintable characters which sometimes are causing issues in local editors and/or file parsers. For example, Win end of line, the BOM, etc.

The first step would be to backup your file:

1. Open the file in BB source viewer.
2. Click the 3 dots button on the right side and choose "Open Raw"
3. Copy and paste to a different file.

The next step would be to delete the file from your repo. You can do from the web or using your local git client.

From the web, in the same 3 dots button, choose delete. Follow the instructions to create a commit on the server.

Using your git client:

* git rm filename
* git commit
* git push

Again, before you begin, ++backup your file++.

Hope that helps

comments: author: Brent L
body: Thank you very much.

What if the corruption isn't a problem with unprintable characters, but a strange scrambling of different lines? The lines read they way they should, but groups of them have been moved around haphazardly. (Sorry, I should have made this clear initially.) Your solution might be the same, but maybe the problem isn't just with that file. Maybe there's also a problem with the way the diffs have been stored?


Tags: bitbucket-cloud

cloud

git
Sourcetree keeps asking me to for login to Atlassian.
Asked by rtibbett:

I have been using Sourcetree, Git \& Bitbucket for years. Lately, when I try to push a change, Sourcetree displays a popup 'Atlassian - Login to your account' It correctly displays my username and I enter my password. The popup disappears, then reappears a few seconds later. I am using the latest version on Sourcetree (2.6.10.0) and an embedded version of Git (just updated to 2.17.1) but same error occurs with non-embedded Git. I have reset Atlassian password and I can access Bitbucket using my password, the same password which fails in Sourcetree! If the push proceeds, I get the error below. Any help greatly appreciated. Many thanks Rob.

Push error:

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks -c credential.helper= -c credential.helper="C:/Users/Rob/AppData/Local/ATLASS\~1/SOURCE\~1/GIT_EX\~1/GIT-CR\~1.EXE" push -v --tags zzz develop:develop  
fatal: HttpRequestException encountered.  
An error occurred while sending the request.

remote: Invalid username or password  
fatal: Authentication failed for 'https://xxx@bitbucket.org/xxx/zzz.git/'  
Pushing to https://xxx@bitbucket.org/xxx/zzz.git

<br />

Completed with errors, see above.


Answers:
author: rtibbett
body: I worked out a solution. My login worked with BitBucket, so it was OK. The same BitBucket login worked with a Push using GIT GUI, so I uninstalled SourceTree rebooted the PC then re-installed SourceTree. It is now happy. Frustrating, but I know what to do next time this happens.
jk
Asked by Kamil Shikhsafiyev:

khk


Answers:
author: Chris
body: Same issue when trying to refresh OAuth token via Source Tree 3.0.8

Tools -\> Options -\> Authentication tab -\> Accounts -\> Add (Edit Hosting Account screen) -\> Refresh OAuth Token  

http://localhost:34106/?state=authenticated\&code=mpD5Q977XYYXyxtYe7


author: Nic Brough -Adaptavist-
body: Are you running bitbucket on your machine, along with this browser? Check it is actually running first.

comments: author: Kamil Shikhsafiyev
body: Y


author: Nic Brough -Adaptavist-
body: Connection refused means that it is, at best, only partly running.

What, exactly have you got running on this machine? Can you fire up the task manager and check that there is a bitbucket process on the local machine? I don't have a Windows install of bitbucket to hand, so I can't tell you exactly what to look for, but check for bitbucket first and java second. One of those two will find it.
SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure
Asked by danilgu:

Good evening, I ran into the problem of sending and receiving git. It used to work, but now it does not work. What to do? The error is this: git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags origin master:master Pushing to https://danilgu@bitbucket.org/danilgu/hitman.git fatal: unable to access 'https://danilgu@bitbucket.org/danilgu/hitman.git/': error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure ????????? ? ????????, ??. ????. Programm: sourcetree version 2.3.5.0


Answers:
author: eflatun
body: Like [@Pradeep Paneru](/t5/user/viewprofilepage/user-id/2403083) said, Go to Tools \>\> Options \>\> Git \>\> Click Update Embeded button in Git Version section.


author: Pradeep Paneru
body: My similar issue was resolved by re-installing GIT. Due to the system limitation, I had to install GIT version 2.10.0.

comments: author: eflatun
body: Yes, I fixed same way too.


author: rasxod
body: <https://community.atlassian.com/t5/Sourcetree-questions/sslv3-alert-handshake-failure/qaq-p/952664#M26353>


Tags: error

ssl
Sourcetree can't connect to GitHub
Asked by Pacey6:

MacOS version : 10.13.6

Sourcetree version : 2.7.6(177)

I want connect to github, but after enter username and password, it always show me a blank page. I had try turn on/off two-factor authentication, but it's blank page too. Basic auth type is not work too.

What should i do for this problem?

![Screen Shot 2018-12-02 at 4.51.11 PM.png](/t5/image/serverpage/image-id/39131iF2FE454CBAF9877B/image-size/large?v=v2&px=999 "Screen Shot 2018-12-02 at 4.51.11 PM.png")![Screen Shot 2018-12-02 at 4.51.56 PM.png](/t5/image/serverpage/image-id/39132iE103A8613FF4EFD6/image-size/large?v=v2&px=999 "Screen Shot 2018-12-02 at 4.51.56 PM.png")![Screen Shot 2018-12-02 at 4.52.13 PM.png](/t5/image/serverpage/image-id/39133i81F039FDA52704CF/image-size/large?v=v2&px=999 "Screen Shot 2018-12-02 at 4.52.13 PM.png")


Answers:
author: Mitchell Pung
body: I was running into the same issue.

I changed the **Auth Type** to **Basic** and the **Protocol** to **Basic** and typed in my credentials there.


author: Rasc
body: I'm facing this issue too. Any news?


author: bluebirdglory
body: did it solve for u? im having the same issue


author: Pacey6
body: I got this error message![Screen Shot 2018-12-03 at 11.00.35 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/39247i7F4390F545E3923B/image-size/large?v=v2&px=999 "Screen Shot 2018-12-03 at 11.00.35 PM.png")and "click here" url is "sourcetree://oauth?error=redirect_uri_mismatch\&error_description=The+redirect_uri+MUST+match+the+registered+callback+URL+for+this+application.\&error_uri=https%3A%2F%2Fdeveloper.github.com%2Fapps%2Fmanaging-oauth-apps%2Ftroubleshooting-authorization-request-errors%2F%23redirect-uri-mismatch".


Tags: mac
Atlassian "Log into your account" Dialog Appears Frequently When SourceTree Is Run
Asked by CNHume:

I recently applied a SourceTree update. I then spent the next 90 minutes or so trying to get Atlassian Authentication working so that I could once again push my commits.  

This problem seems to return whenever there is an update to SourceTree.  

I tried many different approaches, including upgrading by BitBucket Account to an Atlassian Account; and reinstalling SourceTree.

The problem varies in frequency; but returns whenever the SourceTree desktop client is left running. Simply logging in again causes the problem to go away for a little while. I think it returns after one performs a Commit.  

Has Atlassian made progress in understanding the cause of these frequently reported Authentication problems?  

Thanks, Chris


Answers:
author: minnsey
body: Hi  

Assuming you are using Sourcetree for Windows and Git then authentication is dependent on the Git Credential Manager for Windows, GCMW. Unfortunately there have been a series of bugs in this over the last couple of months. The latest release GCMW 1.18.3 seems to be much better and is bundled with Git 2.19.2 upgrading to that version of Git and switch Sourcetree to use in Tools/Options/Git as a System install is worth doing.  

Additionally older versions of GCMW do not support TLS 1.2 so it is possible you are being effected by this, please see <https://community.atlassian.com/t5/Sourcetree-questions/Unable-to-authenticate-on-Windows-using-username-password/qaq-p/954836#M26404> for more information
Can no longer push with sourcetree (win) v2.6.10.0
Asked by Darth Vogel:

Up until the last few weeks I cannot push with sourcetree and have had to rely on intellij to push stuff up to my git master is get this:

git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags origin master:master  
fatal: HttpRequestException encountered.  
An error occurred while sending the request.

git: 'credential-cache' is not a git command. See 'git --help'.  
git: 'credential-cache' is not a git command. See 'git --help'.  
remote: Invalid username or password.  
fatal: Authentication failed for '<https://github.com/xxxxxxx/yyyyyyyy.git/>'

Pushing to <https://github.com/xxxxxxx/yyyyyyyy.git>  
Completed with errors, see above.

I have searched for a solution and see things about the credential-cache, but those forum entries were made back in 2012 and I figure whatever they say is no longer relevant and in 2018 the issue would be different. I recently updated to the current version of sourcetree and it is around then that this happened. Is there some config that needs to be changed? The push works fine when i do it from intellij so i know my credentials work and I know that my version of git is good. Pulls seem to work, which is confusing, my repo is private so i would expect to need the credentials to work for that as well

Thanks for any assistance you can provide.


Answers:
author: minnsey
body: Hi  

Sourcetree for Windows and Git rely on the Git Credential Manager for Windows, GCMW, to handle authentication. Unfortunately there have been a series of issues with the GCMW over recent months. These seem to be resolved in v1.18.3 that is bundled with Git for Windows 2.19.2. You can install it and then use the Tools/Options/Git System Git option to pick it up.  

This will also ensure you are TLS 1.2 compliant, see <https://community.atlassian.com/t5/Sourcetree-questions/Unable-to-authenticate-on-Windows-using-username-password/qaq-p/954836#M26404> for more information


Tags: windows