youngmon/atlassian-qna huggingface dataset:
How to unfork a Repository
Asked by Zvika Castel:

I've forked repo B from repo A.

now I want repo A to be removed (end of life) and repo B to be a repository, not a fork.

don't want no merge actions. too much time to test.

the final state is:

repo A is no longer exists, forked repo B turn into nonforked repo and maintain its original name.

IMHO, an UnFork option in BitBucket server would be nice to have...


Answers:
author: Aron Gombas _Midori_
body: What if you clone "B", then delete both "A" and "B", then create a new repo "B" and import the stuff you cloned in the first step?

comments: author: Zvika Castel
body: Hi Aron,

Thank you for your reply.

I'm sure this will solve the situation, but to be honest, I hoped to get an answer like: In version x.y.z. of BitBucket server Atlassian kindly added this UnFork option.

Anyway, thank you again.


author: Miguel Costa
body: yeah I'm actually looking for the same thing.

that or just the option "clone" repo.

lot's of times I create forks to keep everything from the source repo but then the repo will go it's own way (just keep the history). an option to mark the repo as "not a fork" would be welcomed

comments: author: Miguel Costa
body: by the way you should have realized already that bitbucket never implements things that people actually want, maybe they will recommend some marketplace plugin


Tags: bitbucket-server
bitbucket?fork???fork?????????????????????
Asked by bumptakayuki:

???????????????????A???????????????????????B???fork????fork?????????A??fork???????B???????????????????????????


Answers:
author: Rick Li
body: ?????????????????????????

fork??????fork?????????????????????????fork?????(Sync)?????????????????????????????

* [???????](https://support.atlassian.com/ja/bitbucket-cloud/docs/fork-a-repository/#Sync-your-fork)

???????????


Tags: bitbucket-cloud

cloud

language-ja
Is there a fixed date for credit card payment?
Asked by ?????:

Hello  

Upgrade to Bitbucket premium level on 2021.07.21.  

However, the payment date is from 2021.07.15 to 2021.08.15.  

Is the payment date specified?


Answers:
author: Daniel Eads
body: Hi [@?????](/t5/user/viewprofilepage/user-id/4352334) , welcome to the Community!

Our billing and licensing team can adjust the payment dates for licenses if you need to move them around. This process starts with a support case, [which can be opened at this link](https://support.atlassian.com/contact/#/?inquiry_category=billing_licensing) .

Cheers,  
Daniel \| Atlassian Community


Tags: atl-ca

bitbucket-cloud

cloud
what version of elasticsearch is supported on bitbucket 7.6.3 and how do I find the current version
Asked by Gayathri Rachakonda:

Hi,

I'm looking for some help on elastic search for bitbucket 7.6.3

Can you help me find out the version of elastic search existing on bitbucket

How to find current version of elastic search.

Thanks


Answers:
author: Ulrich Kuhnhardt _IzymesCo_
body: The elastic search version for Bitbucket 7.6.3 is

```
<elasticsearch.version>7.5.2</elasticsearch.version>
```

**How do I find the ES version?**

Download Bitbucket sources \[1\] via my.atlassian.com (you need a license to be able to access sources) for the Bitbucket version.

Unzip and look in

```
bitbucket-parent/pom.xml 
```

for most external libraries versions.

Good luck and let me know how you go.

Cheer Ulrich

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

\[1\] <https://my.atlassian.com/download/source/stash>

comments: author: Gayathri Rachakonda
body: Thanks for the quick reply.


Tags: bitbucket-server

elastic-search

server
How to authenticate API V2
Asked by ryan yang:

I'm unable to get an authorization bearer token using the V2 API. Am I doing something incorrect?  

curl -X POST -u "client_id:secret" \\  
<https://bitbucket.org/{COMPANY}/oauth2/access_token> -d grant_type=password \\  
-d username={MY_USERNAME} -d password={MY_PERSONAL_ACCESS_TOKEN}


Answers:
author: ryan yang
body: With the Rest V1 api, I could easily reach endpoints in the format:  

curl "<https://stash.{COMPANY}.com/rest/api/1.0/projects/{Project_KEY}/repos/{Repo_slug}/settings/hooks?type=POST_RECEIVE>" \\  
-u {USERNAME}:{MY_PERSONAL_ACCESS_TOKEN} \\  
--request GET \\  
--header 'Content-Type: application/json'  

However, I can't do the same for V2


Tags: bitbucket-server

server
Customizable Report Name
Asked by pspicer:

Looking through the source for the checkstyle-report pipe, name appears to be hardcoded to "Checkstyle". When executing a pipeline that generates multiple checkstyle reports, it would be useful to customize this name so that it is easier to distinguish between reports.


Answers:
author: Halyna Berezovska
body: [@pspicer](/t5/user/viewprofilepage/user-id/1258072) if you mean the title ([here](https://bitbucket.org/atlassian/checkstyle-report/src/8e1c93b5ca7b7db6b42c55174afacbd60541dd5d/src/main/java/com/atlassian/bitbucket/pipelines/checkstyle/report/Main.java?at=master#lines-107) ) -

yes it is indeed hardcoded. Thank you, we will discuss your initiative within the team and will get back to you with updates.

Regards, Galyna

comments: author: pspicer
body: Sounds good, thanks [@Halyna Berezovska](/t5/user/viewprofilepage/user-id/3865505)


author: Daniel Costa
body: Hello guys,

Do we have a solution for this?

I'm facing the same issue: multiple steps running in parallel with fail-fast=false producing multiple checkstyle-reports via after-script hook, the Report Window (from PR or Pipeline result) shows only the later and only their comments are left on code.

Do you know any other setting I could add to pipeline to show more than one checkstyle-reports result to the Report?

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


author: David Morrison
body: Hi Daniel,  

Also had the same issue with multiple reports.  

Have a look at "CHECKSTYLE_REPORT_ID" field? It appears it needs to be different for each report according to the docs  

<https://bitbucket.org/atlassian/checkstyle-report/pull-requests/8#LREADME.mdF22T23>


author: Daniel Costa
body: [@David Morrison](/t5/user/viewprofilepage/user-id/5475553)

Your suggestion worked for me, I have now separated reports.

Thank you very much.


Tags: app

bitbucket-pipelines

cloud
Global (Workspace or Project level) settings for minimum reviews on pull request
Asked by andrew_pass:

Hi,

Just reviewing some settings for compliance with our teams ahead of a big move to BB Cloud, we're looking to standardise some minimum requirements listed below -

* **At least 2 Reviews per pull request**

  * Setting found here - /admin/branch-permissions

* **Require issue keys in commits**

  * Setting found here - /admin/links

I can only find the settings at a repository by repository level, is it possible to set these at a project level and have them cascade down or even workspace?

Cheers,

Andy


Answers:
author: Theodora Boudale
body: Hi Andy,

I'm afraid that it is not possible to set these options at a project or workspace level.

I can open a feature request for our development team to consider these, please feel free to let me know if you'd like me to do that.

If you'd like me to open feature requests, I would like to ask the following:

1. Would you prefer to have these options at a project or workspace level?

2. Regarding the requirement "At least 2 Reviews per pull request", this can be set for each repository, but it is also specific to a certain branch or branch pattern (that will be the destination branch of the PR). Is the requirement to specify also a branch/branch pattern for a setting available at the project or workspace level?

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Update local code with pull request from private fork without requesting read access to said fork
Asked by Joey St-Laurent:

Hello gang!

Using git

Context:

1. I have a private repo that I shared (read) to John.
2. John forked the repo, created a branch, pushed it and created a Pull Request for me to review and then merge into my own repo.

What I **can** do:

* See his pull request
* See his changes
* See a list of his commits
* Merge his pull request

What I **cannot** do (but wish I could do):

* Click one of his commits to see the diff
* Update my local code to his Pull Request's branch to test his code locally

My solution was to ask John to give me read permissions to his fork and all is working now.

However, this feels like an unnecessary step. If I have access to his changes and can merge them to my repo, why couldn't I pull them to my local code to test them out? Am I missing something?

I searched online but found nothing that didn't assume I already had read permissions on the fork. Please forgive me if the question was already answered elsewhere.

Thank you in advance for your precious help and may this discussion enlighten others as well.


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

In this scenario, did John created the fork under a workspace different than the one that owns the parent repo?

If a repo is owned by e.g. workspace-1 and someone forks it under their personal workspace or any workspace other than workspace-1, we don't automatically give access to the fork to any user of workspace-1. If the fork is owned by a different workspace, e.g. workspace-2, only user groups of workspace-2 will get access automatically (if they are configured for getting access automatically). So, this is a matter of repository ownership.

That being said, I understand the requirement to be able to fetch the PR code locally. This is not possible at the moment without having access to the fork, because PRs are not stored as refs in the destination repo. We have a feature request about this in our issue tracker:

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

Until this is implemented, a user will need to have access to the fork in order to be able to pull the code of a PR locally.

I also wanted to add here that if  
- the repo is owned by workspace-1  
- you are an admin of workspace-1, and the admins user group is configured to get access to all new repos in that workspace  
- John is a member of a user group of workspace-1 that is allowed to create repos in workspace-1  
then John could create their fork under workspace-1, which would give you access to the repo automatically. I just wanted to mention that as a way that would eliminate the step of John giving you access.

Please feel free to let me know if you have any questions.

Kind regards,  
Theodora

comments: author: Joey St-Laurent
body: Thank you for your answer.

I did what you suggested, giving John permission to create repositories in my workspace.

He then forked the project in my workspace and it worked like a charm.

Kind regards,  
Joey


Tags: bitbucket-cloud

cloud

commit

fork

git

pull-request

read-only
WordPress into bitbucket
Asked by Massasoit Webmaster:

I'm hoping someone can lead me to resources on how to get our WordPress site into our BitBucket account.

Thank you,

Lloyd.


Answers:
author: Nic Brough -Adaptavist-
body: Ok, last time I put a site into Bitbucket, I did it using the command line, following <https://stevegrunwell.com/blog/keeping-wordpress-under-version-control-with-git/> - the fact my git repositories are done by Bitbucket doesn't affect the underlying methods

comments: author: Massasoit Webmaster
body: I did get files into Bitbucket. Thanks for that. But I'm not sure which files. I tried connecting to Netlify to pull form data from a form in our site. It did not see any forms in what I pulled into Bitbucket. Any thoughts would be appreciated.


author: Nic Brough -Adaptavist-
body: Have a look in the Bitbucket UI, it shows what files are under source control in there.


author: Massasoit Webmaster
body: Source control wordpress content and/or settings.


author: Nic Brough -Adaptavist-
body: What do you mean by "into"? Source control your wordpress content and/or settings? Import the site into Bitbucket's documentation functionality so you get rid of Wordpress? Something else?


Tags: bitbucket-cloud

cloud

wordpress
Update App Password Permissions
Asked by Boris van Katwijk:

We use BitBucket App Password to authenticate a third-party tool, but it turns out we need slightly more permissions than we assigned during the creation of the App Password in BitBucket.

Is there any way to edit these permissions?


Answers:
author: Caroline R
body: Hi, Boris! Welcome to the community!

It's no possible to adjust the permissions of an App password after you create it. They are essentially designed to be disposable, so if you need to change the scopes or lost the password, you can just create a new one.

In case you would like to read more about App passwords, you can access this documentation:

* [App passwords](https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/)

Please, feel free to share any additional questions or concerns regarding this subject.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
Branch name "mater".
Asked by Bogeyduffer:

Every time I "Add existing local repository" the branch name is "mater" rather than "master". Is this expected or should be "master"?


Answers:
author: Bogeyduffer
body: If I go into the header folder and change the name to 'master'. Then everything appears to work. Otherwise I'm getting the following error: error:

failed to push some refs to 'bitbucket.org:Bogeyduffer/structs.git'


Tags: bitbucket-cloud

cloud
Repository disappeared
Asked by SRykovanov:

Dear community,

Some of my repositories disappeared from https://bitbucket.org/workspace

for example, I still find on my local machine:

hg pull  
pulling from https://bitbucket.org/workspace/repositoryname  
abort: HTTP Error 404: Not Found


Answers:
author: Caroline R
body: Hi, [@SRykovanov](/t5/user/viewprofilepage/user-id/4482195)! Welcome to the community!

Checking the repositories under your workspace, I confirmed there are several Mercurial repositories. So this is the reason you can't see these repositories anymore.

We deprecated Mercurial repositories and features last year:

* <https://bitbucket.org/blog/sunsetting-mercurial-support-in-bitbucket>

However, these repos still exist in our system in an unavailable state and the support team can provide a backup of them in case you don't have one.

Therefore, I opened a support ticket on your behalf, you will receive an email with the ticket number and another engineer will contact you to work on that with you.

In case you would like to read more about these changes, you can access this blog post: [Sunsetting Mercurial support in Bitbucket](https://bitbucket.org/blog/sunsetting-mercurial-support-in-bitbucket)

Please feel free to let me know if you have any questions.

Kind regards,  
Caroline


author: Theodora Boudale
body: Hi everyone,

Atlassian made a decision to move away from maintaining and supporting Mercurial repositories in 2019.

This was announced in community:

* <https://community.atlassian.com/t5/Bitbucket-articles/What-to-do-with-your-Mercurial-repos-when-Bitbucket-sunsets/ba-p/1155380>

and on our blog:

* <https://bitbucket.org/blog/sunsetting-mercurial-support-in-bitbucket>

Bitbucket Cloud Support team is no longer able to restore those repositories.

If you are looking for a Mercurial repository that was public, all the public repos were archived by Software Heritage:

* <https://bitbucket-archive.softwareheritage.org/>

We will not be able to meet any further requests for recovery of private HG repositories and users will need to recover those from local copies only.

Kind regards,  
Theodora


author: clark_hruska
body: We are having the same issue! This is critical as we just went to production! We have the paid version but I can't get premium support because they can't find my workspace.

comments: author: Caroline R
body: Hi, [@clark_hruska](/t5/user/viewprofilepage/user-id/2073041)!

In order to create a ticket on <https://support.atlassian.com/contact/>, you need to inform the workspace that is under the paid plan. Can you confirm if you are filling the "workspace URL" field with the workspace that is in the paid plan?

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
Link Jira issues in commit messages
Asked by Mike M:

Hi all,

The release notes fom the lastest version of SourceTree mentiones a new feature that links JIRA issue-keys in commit messages directily to the corresponding issue page on JIRA. I wanted to try it out but wasn't able to enable it. I presume that you somewhere have to state the base address of a JIRA portal for SourceTree to automatically link to the corresponding issue.

Can somebody tell me to do here?

Cheers,  
Mike


Answers:
author: stevestreeting
body: Sorry this wasn't clearer, we have a blog on this coming soon.

The settings are per-repository so you need to click on the 'Settings' button on the top-right of the repo window toolbar, then go to the 'Advanced' tab. There's a 'Commit Text Replacements' section there which is where you add your JIRA link setup, you just need to know the project prefix and the base JIRA instance URL.

comments: author: Mike M
body: Excellent! Thanks for the hint!
Remote branch listing is very slow
Asked by vjpr:

When I click the Push or Pull icon, the \`remote branch to pull\` dropdown or the \`remote branch\` column shows a spinner for about 8 seconds. I am using GitHub.

If I right-click on the branch from the left pane under \`branches\` there is no delay and it works as expected.

I remember seeing a ticket or question for this earlier and it was listed as fixed for 1.3b1. Perhaps it was not resolved for the toolbar buttons.


Answers:
author: stevestreeting
body: Yes, the resolution for 1.3 was in fact to skip the remote call when using the sidebar, the top-level toolbar options were not affected.

I'll log another improvement to use the cached remote branch info unless a refresh is requested. It is sometimes useful to know what's already on the remote even if you don't have that info fetched (especially after you've just added a new remote for example), but I appreciate that day-to-day relying on the existing info is mostly reliable.

comments: author: vjpr
body: Thanks Steve!


author: stevestreeting
body: Tracking issue: <https://jira.atlassian.com/browse/SRCTREE-864>
File operations greyed out for some Mercurial repositories in SourceTree
Asked by brendanarnold:

I have some repositories that I have been working on for a while now but for some reason I cannot do many of the file operations on individual files that you should be able to do i.e. Move, Copy, Add, Delete etc. Only Add/Remove option is available.

Other repositories, this works fine.

Why is this?

Brendan


Answers:
author: brendanarnold
body: Ok I got it - I was in 'Log' view for some of my repositories, I had been working within this view thinking it was the normal way to work


author: brendanarnold
body: Ok I got it - I was in 'Log' view for some of my repositories, I had been working within this view thinking it was the normal way to work
Sourcetree always tries to push a tag when not needed.
Asked by Prakash Nadar:

Hi, every time I push changes to the remote, I always get this message

! \[rejected\] xxxx-iphone-1.4.1 -\> xxxxx-iphone-1.4.1 (non-fast-forward)

the xxx-iphone-1.4.1 is one of many tag and I have never done anything with it. I see the same message if I copy paste the command issued by sourcetree on the console.

How do I make sure that git (or sourcetree) does not attempt to push this tag or how do I fix the repository that it does not push the tag as well.

Thanks.


Answers:
author: stevestreeting
body: The easiest way is to delete the tag locally if you don't need it.

If you want to keep the tag but not push it, you'll need 1.3 beta 3, which has the option in the Push dialog that says 'Push all tags' - you can uncheck this. Then when you want to push a tag, you can do it from the sidebar instead.

comments: author: Prakash Nadar
body: Thanks, I will start using the beta version.


Tags: push
Invalid SourceTree license file
Asked by George Coulouris:

When I try to import the license I get 'The file specified is not a valid SourceTree license file. Please pick a valid license.'

Here's a copy of the content of the license file:

\<?xml version="1.0" encoding="UTF-8"?\>

\<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"\>

\<plist version="1.0"\>

\<dict\>

\<key\>Name\</key\>

\<string\>G\&J\</string\>

\<key\>Email\</key\>

\<string\>george@coulouris.net\</string\>

\<key\>Product\</key\>

\<string\>SourceTree\</string\>

\<key\>Signature\</key\>

\<data\>QlRQmNxgm/TB7KJQ7KRYCJjARlAGIbLaz2sWDoPyHEosDhJJ5iHhv7jVjetAmcQxOOzhkeJ1l8Mr

IUktYiuDQb4ZiP4xuKi0T7wRCmMptiH88PLmELbhcpHxpDVRitT05JJtilzHjPfXQxisaRBEX6tM

oX2br1pC0J6I6lmIc6w=

\</data\>

\</dict\>

\</plist\>


Answers:
author: stevestreeting
body: Hmm, sorry about this, it appears the XML encoding has had a problem with the '\&' character somehow. Please could you raise a support request at <https://support.atlassian.com> so we can send you a new license file?
customize colors in diff view in SourceTree
Asked by Dan Lipofsky:

Is there a way to customize the colors for the diff view in SourceTree 1.2.9.1 (Mac OS X)?

I am color blind (like 5% of the male population) and the current colors are nearly indistinguishable.


Answers:
author: stevestreeting
body: Not right now, sorry. The +/- markers in the margin hopefully help, but I'll add this to my list.

comments: author: stevestreeting
body: Tracked here: <https://jira.atlassian.com/browse/SRCTREE-844>


author: stevestreeting
body: This has been added for the upcoming 1.3.2 release, it's an option in the Diff tab of Preferences.


author: Anthony P
body: Was this feature not added to Windows? I am using 1.6.23.0 and I don't see how to change the colors. Was it removed?


author: Aric
body: I'm also looking for this feature? In my industry green is remove and red in new so it is reverse from the Sourcetree standard....


author: Sir Glorg
body: Please can you add this to the Windows release? Watching for +/- signs is a bit unfortunate.


Tags: accessibility

colour

visual-impairment
Unfuddle support
Asked by Chris von Rabenau:

I use Unfuddle as my git-repository host. Is there a way users can create their own connections to hosts?

Chris


Answers:
author: stevestreeting
body: You can use any remote URL you like (in the clone dialog or if you set it up in the Repository Settings for a new repo), it doesn't have to be one of the ones which we support in the Hosted Projects view. The Hosted Projects view is just a shortcut to getting URLs for projects on services for which SourceTree supports the API.

We've had a couple of requests for support in the Hosted Projects window for other services beyond Bitbucket, GitHub and Kiln. This is the first time Unfuddle has been requested, but it does seem to have the same sort of API so this is doable. I'm considering whether, rather than supporting every service individually, to add a way where new services can be plugged in somehow so this is more extensible, but this is not possible now.

But as I say, you can still use any git/hg host you like with SourceTree just by using the URLs directly, they just won't appear in the Hosted Projects view.

comments: author: stevestreeting
body: FYI this is tracked here: <https://jira.atlassian.com/browse/SRCTREE-636>


author: alexii carey
body: I support Unfuddle


author: alexii carey
body: I support Unfuddle and would love to see more direct integration with this service.


Tags: unfuddle