youngmon/atlassian-qna huggingface dataset:
How can my Dev branch ever get behind my Master branch?
Asked by Loris Gifts:

I have two main branches; Dev and Master. New branches are only created from the Dev branch, and are merged into the Dev branch. Eventually Dev is merged into Master. Branches are never created from Master. Frequently, I get notice that my Dev branch is behind Master by X commits and to sync. How can Dev ever get behind Master, if my dev team never creates branches from Master, or merges into master? I've asked my dev team and confirmed that they do not branch from Master or merge into Master.


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

If the Dev branch is behind Master, this means that there are one or multiple commits on the Master branch that are not reachable by the tip of the Dev branch. The message has nothing to do with the diff between the two branches, it only has to do with commits being reachable.

If commits are not pushed to Master branch directly, this can happen when you merge a PR from Dev to Master with merge commit or squash merge. The merge commit or the squashed commit will be added to Master branch when you merge, but that commit will not be reachable by the tip of Dev branch.

Assume the following commit graph, with A, B, C, and D representing commits. A and B are commits on the Master branch, while C and D are commits on the Dev branch.

```
         C - D      <-- Dev branch
        / 
A - B -             <-- Master branch
```

<br />

If you merge Dev into Master with a merge commit, the graph will look as follows:

```
      C - - D        <-- Dev branch
     /       \
A - B - - - - E      <-- Master branch
```

Master will point to commit E, the merge commit, while Dev branch is still pointing at commit D. Commit E is not reachable by Dev branch, so in this case the Dev branch will be 1 commit behind Master.

I hope this helps, please feel free to reach oout if you have any questions.

Kind regards,  
Theodora

comments: author: Loris Gifts
body: Much more complex than I understood. Thank you.


Tags: bitbucket-cloud

cloud
I need a git gc --prune=now on my repository
Asked by Apoka_4k:

The size still appears as greater than 4GB despite I reduced it to around 2.5GB.


Answers:
author: Ben
body: Hi Apoka,

I can see your personal repository is now 3.3GB, I executed a git gc and it did not reduce the size any further.

I would suggest executing the following command to find a list of your largest files:

*

  ```
  git rev-list --objects --all \
  | git cat-file --batch-check='%(objecttype) %(objectname) %(objectsize) %(rest)' \
  | awk '/^blob/ {print substr($0,6)}' \
  | sort -r --numeric-sort --key=2 \
  | numfmt --field=2 --to=iec-i --suffix=B --padding=7 --round=nearest
  ```

Once you have those largest files, you can either convert these to LFS or remove them from the repo completely using the BFG Tool:

* <https://support.atlassian.com/bitbucket-cloud/docs/use-bfg-to-migrate-a-repo-to-git-lfs/>
* <https://rtyley.github.io/bfg-repo-cleaner/>

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud

garbage-collection

size
Rewind history to undo large commits
Asked by Happenbox:

Hi All,

I'm having git gc issue...

***remote: Repository is over the size limit (4 GB) and will not accept further additions.***   
***remote:***   
***remote: Learn how to reduce your repository size: <https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/#Rewind-history-to-undo-large-commits>.***

I'm wondering if someone in support can me to resolve this pls.

Thank you,

Anthony


Answers:
author: Theodora Boudale
body: Hi Anthony,

I checked the repositories you have access to and I saw one with a size of 4 GB. I ran a git gc on the repo, but its size remains the same.

* The name of the repo where I ran the git gc ends in 'sr'. Can you please confirm if that's the one you're having issues with?  

* Did the repo's size increase because of an accidental large push, or does it have large non-text files throughout its history?  

  If you accidentally made a large push, you can follow the steps in the link mentioned in the command's output to undo this last push.  

  Otherwise, you will need to rewrite history to either remove any large non-text files or migrate them to LFS, in order to reduce the repo's size. After you rewrite history, please let me know and I can temporarily increase the repo size limit so you can push your changes.  

  You can see a detailed reply of mine in another question with info on how to reduce the repo's size and things to take into account:  

  <https://community.atlassian.com/t5/Bitbucket-questions/Revert-bitbucket-repository-state-to-one-day-prior/qaq-p/1908360#M76762>

Kind regards,  
Theodora

comments: author: Happenbox
body: [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) Thank you for the response.

I followed the instructions sometime over the weekend and I managed to fix it.

I'll not be needing this support right now.

Kind regards,

Anthony


author: Theodora Boudale
body: Hi Anthony,

Thank you for the update, it's good to hear that you managed to fix it.

Please feel free to reach out if you ever need help.

Kind regards,  
Theodora


author: Happenbox
body: .


Tags: bitbucket-cloud

cloud
How can I access contents in a file in my repository through a python project file?
Asked by Hailey Wallace:

I'm very new to web development and I was trying to configure access to a file in my repository in a Django project (so just via a python file) using my username, repo name/workspace name/file name and the app password. I found a guide for cloning the repository via python, but nothing to access the specified file and its contents. I also don't know if this is possible since I haven't found anything specifically addressing this issue. I did find something that said to use the py requests module and request it via a url, but this was once again for cloning. Can anybody guide me in the right direction? And if this doesn't work, do you have any other suggestions for how to approach this?


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

We offer API endpoints for getting a file's content and for uploading a file to create a commit.

If you're looking to get the contents of just one file of a repository, you can use the following API endpoint:

* <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-source/#api-repositories-workspace-repo-slug-src-commit-path-get>

If you make changes to that file locally and want to commit the new version to the Bitbucket Cloud repo, you can use the following API endpoint:

* <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-source/#api-repositories-workspace-repo-slug-src-post>

Kind regards,  
Theodora

comments: author: Hailey Wallace
body: Thank you so much!


author: Theodora Boudale
body: You are very welcome! Please feel free to reach out if you ever need anything else!


Tags: api

bitbucket-cloud

cloud

django

python
Unable to merge the PR in bitbucket
Asked by Sunil kumar:

Hi Team, one of our team member is unable to merge the PR to master branch and getting the below issue . Could anyone please help me out to resolve this issue

error message : Merge issues

there is 1 issue preventing you from merging this pull request

you have insufficient permissions to update 'master'. Check your branch permissions with the project administrator


Answers:
author: Ben
body: Hi Sunil,

You will need to have a repository administrator check **Repository Settings \> Branch Restrictions** and verify that the user who is attempting to merge is present in the **Merge access via Pull Requests**list, if not they will need to be added to the list of users otherwise they will be restricted from performing the merge - more information may be found in our documentation:

* [Bitbucket Cloud - Branch Permissions](https://support.atlassian.com/bitbucket-cloud/docs/use-branch-permissions/)

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Configure Pull request description template via REST API
Asked by Lucky:

Dear Community,

I want to configure my Bitbucket Data Center (Atlassian Bitbucket v8.9.12) repository **Pull request description template** in the pull requests section via the REST API.

![2024-06-06_17h19_24.png](/t5/image/serverpage/image-id/328407iC69C988A4E016D01/image-size/large?v=v2&px=999 "2024-06-06_17h19_24.png")

I've searched through the RESTI API documentation [The Bitbucket Data Center REST API (atlassian.com)](https://developer.atlassian.com/server/bitbucket/rest/v819/intro/#about) but could not find any documentation for that.

Any hint if this is possible via the REST API? Thanks!

Best Regards,

Lucky


Answers:
author: Lucky
body: Works with a PUT request against

```
/rest/ui/latest/projects/<project>/repos/<reposlug>/pull-request-templates
```

with this JSON payload

```
{
"description":"This is your description",
"enabled":true
}
```

But seems to not be officially documented in the Bitbucket Server REST API documentation. Just revere engineered it from the Web frontend.


Tags: api

bitbucket-data-center

data-center

pull-request

rest-api

template
Not receiving email to complete 2FA for bitbucket
Asked by Mohan Kumar M G:

Not receiving email post adding 2FA for bitbucket. Have retried again multiple times, but no luck. But other emails from Atlassian are coming through fine.

The email is not in my spam folder too.

![Screenshot from 2024-06-06 19-48-32.png](https://community.atlassian.com/t5/image/serverpage/image-id/328382iE418A5E15BB6388B/image-size/large?v=v2&px=999 "Screenshot from 2024-06-06 19-48-32.png")


Answers:
author: Theodora Boudale
body: Hi [@Mohan Kumar M G](/t5/user/viewprofilepage/user-id/5514836) and welcome to the community!

The emails we sent to your email address were dropped because we received a hard bounce response from your mail server. The email address is then placed in a suppression list, as a hard bounce response indicates permanent failure.

I went ahead and removed your email address from our suppression list. If your email account is now operational and you can receive other emails, please follow the process to setup 2FA one more time so that a new email gets sent. A new email needs to be sent, as the previous ones were dropped.

Please feel free to let me know how it goes and if you need further assistance.

Kind regards,  
Theodora

comments: author: Mohan Kumar M G
body: [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) Thanks a ton. Able to sign up for 2FA now.


author: Theodora Boudale
body: That's good to hear, thank you for the update. Please feel free to reach out if you ever need anything else!


Tags: bitbucket-cloud

cloud
We couldn?t log you in. Try logging in again
Asked by Anton Gridz:

Hello,

I haven't been using BibBucket for several months, and now I can't log in. I've tried to reset my Atlassian password twice. I'm able to log in to my Atlassian account, but I can't open BitBucket. I keep getting the following error:  
"We couldn't log you in. Try logging in again.".

Could you please elaborate on this? Thanks!


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

Your Bitbucket Cloud account was in a dormant state which is the reason for the error you were seeing.

I went ahead and reactivated it. Could you please log in when you have time and let me know if the issue is resolved?

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Bitbucket pipeline seems down?
Asked by jing.li:

I am not able start pipeline jobs, all of them are in queue state. Does anyone have the same problem?

Thanks


Answers:
author: Ben
body: Hello,

We experienced an incident that caused service degradation which affected operations within GIT operations, the Bitbucket UI and Pipelines:  
<https://bitbucket.status.atlassian.com/incidents/1s5r0j8g8dbt>

Our systems report that our services are returning to operational level. Can you perform the actions that were impacted and let me know if this has improved?

Regards,

* Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
DDTC registration and FIPS 140-2 encryption compliance
Asked by Sean Wuttke:

I am trying to find out if Bitbucket Cloud is registered as an authorized user under DDTC and if the encryption of data stored in Bitbucket Cloud meets FIPS 140-2 encryption requirements.


Answers:
author: Ben
body: Hi [@Sean Wuttke](/t5/user/viewprofilepage/user-id/5514260)

Bitbucket Cloud is certified with industry standards such as SOC II, SOC III, PCI DSS, ISO/IEC 27001, ISO/IEC 27018, and GDPR. A list of compliance documents may be found below:  

* <https://www.atlassian.com/trust/compliance/resources>

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: Sean Wuttke
body: Thanks Ben, I take it than that the answer is as followed. Bitbucket is not registered as an authorized user with Directorate of Defense Trade Controls (DDTC) and doesn't abide by the FIPS 140-2 encryption requirements. As neither of these seem to be located in the link that you attached.


author: Ben
body: Hi [@Sean Wuttke](/t5/user/viewprofilepage/user-id/5514260)

Correct, sorry I should have been more clear.

Upon further digging, I've found that FIPS 140-2 is a requirement for FedRAMP Moderate.

* Achieving FedRAMP Moderate is part of our cloud roadmap and is estimated for Q1 2025 - so this would include the implementation of FIPS 140-2 encryption requirements:  
  <https://community.atlassian.com/t5/Trust-Security-articles/It-s-official-FedRAMP-Moderate-has-a-new-date-in-cloud/ba-p/2488663>

As for DDTC - Atlassian products do comply with United States export controls and economic sanctions regulations and laws regulating international transactions, more information regarding export controls can be found below:  

* <https://s28.q4cdn.com/541786762/files/doc_downloads/governance/2023/Atlassian-Code-of-Conduct.pdf>

Please let me know if further information is required.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
I want to leave this workspace
Asked by atanusamanta1992:

This is one of my friend workspace. I want to leave this workspace. From all workspaces, I click on leave workspace, I got successfull message, but workspace is still showing in my account. please help me regarding this.


Answers:
author: Ben
body: Hi!

I can see there were some remnants of data caching that were preventing your user account from fully detaching from the workspace you've mentioned. I've just refreshed your workspace membership in the backend so you should no longer see it present :)

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Am not able to create workspace
Asked by Quadract Corp:

Dear Team,  
we are startup and planning to use bitbucket as our code management tool, but we end up with worst experience when we try to setup bitbucket first time.  
issues.  

when i try to create workspace for my org, am getting 404 error, which is not good. i feel bitbucket is not stable  

also am getting the same error when i try to create account and price/plans page.  
so we got confusion whether we take atlassian products or not.  

attached one of the error for reference![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/328223i50E5B239204BA87E/image-size/large?v=v2&px=999 "image.png")


Answers:
author: Mark C
body: Hi [@Quadract Corp](/t5/user/viewprofilepage/user-id/5514257)  

Welcome to the community.  

Would you be able to confirm if you're still unable to create a new workspace at the moment?  

Regards,  
Mark C

comments: author: Farhan Sheikh
body: I am unable to create a workspace. It redirects me to an 404 error code


author: Mark C
body: Hiv [@Farhan Sheikh](/t5/user/viewprofilepage/user-id/5532899)  

Would you be able to try to use a different browser such as incognito window, Chrome, or Firefox and see if the same issue happens there?  

Are you also able to access [www.atlassian.com](https://www.atlassian.com/) website?  

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
Very small branch not displaying all files in the branch diff
Asked by David Frost:

I have a branch with just 10 changes in it, and if I have the diff "Load files" setting set to "all at once". Bitbucket is refusing to show the 10th file in the diff, despite reporting that there are 10 files.

Switching to "view source" shows the file is in the branch.

Switching the diff "Load files" setting to "Individually" allows the file to appear.

In other branches, far more than 10 changes are shown.

I've even tried creating the entire branch, with the same result.

Can anyone explain why this is ?


Answers:
author: Syahrul
body: G'day, [@David Frost](/t5/user/viewprofilepage/user-id/5427187)

Welcome to the community!

Can you raise a support ticket using the [Support portal](https://support.atlassian.com/contact/) and include the PR and screenshot of the missing files so we can investigate further?

Thanks!

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud
Does app engine pipe 1.6.0 have support for Java 17 and/or 21?
Asked by Bruce Wilcox:

If yes, what docker image is available?

I need a successor to

```
maven:3.8.3-openjdk-11
```


Answers:
author: Igor Stoyanov
body: Hi [@Bruce Wilcox](/t5/user/viewprofilepage/user-id/1643739) . According to [gcloud app deploy](https://cloud.google.com/sdk/gcloud/reference/app/deploy) Java17 and 21 versions are supported.  

[google-app-engine-deploy](https://bitbucket.org/atlassian/google-app-engine-deploy/src/master/) pipe based on [google/cloud-sdk:473.0.0](https://hub.docker.com/layers/google/cloud-sdk/473.0.0/images/sha256-2366a8963b4f1b27197c15b1a323a874d671afce90aebbd5f6e29aa82708d76c?context=explore), where:

*There is only one alternative in link group java (providing /usr/bin/java): /usr/lib/jvm/java-11-openjdk-amd64/bin/java*

Regards, Igor

comments: author: Bruce Wilcox
body: My question has to do with what docker image will work.

\`\`\`  

```
image: maven:3.8.3-openjdk-11
pipelines:
  branches:
    master:
      - step:
          caches:
            - maven
          image: maven:3.8.3-openjdk-11
          name: Build, stage, and deploy App Engine content
          deployment: production
          script:
            - python3 --version
            - mvn --define skipTests=true --activate-profiles useItips --settings settings.xml install appengine:stage
            - ls -la target/appengine-staging/app.yaml
            - cat target/appengine-staging/app.yaml
            - pipe: atlassian/google-app-engine-deploy:1.6.0
              variables:
                KEY_FILE: ${XXXX_SERVICE_ACCOUNT_KEY}
                PROJECT: 'XXXX'
                DEPLOYABLES: 'target/appengine-staging/app.yaml'
                VERSION: 'XXXX-${BITBUCKET_BUILD_NUMBER}'
                PROMOTE: 'true'
                STOP_PREVIOUS_VERSION: 'true'
                EXTRA_ARGS: '--verbosity=debug'
    
```

\`\`\`

I want to replace \`maven:3.8.3-openjdk-11\` with \`maven:3.8.3-openjdk-17\` or some such but cannot find an image that contains Java 17, Python 3, and Maven.


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

gae

google

pipes
Cannot login to Bitbucket.org
Asked by Pedro Daniel Sanchez:

I get the message:

We couldn't log you in {#toc-hId--356018942}
--------------------------------------------

Any suggestions?

Thanks.


Answers:
author: Patrik S
body: Hello [@Pedro Daniel Sanchez](/t5/user/viewprofilepage/user-id/5514105) ,

as [@Laurie Sciutti](/t5/user/viewprofilepage/user-id/1137433) correctly stated, your account was Dormant due to a long period of no activity, causing the issue with the login.

We have set it to Active again, and you should be able to log in as usual as of now.

Let us know in case you are still facing the issue.

Thank you, [@Pedro Daniel Sanchez](/t5/user/viewprofilepage/user-id/5514105) !

Patrik S


author: Laurie Sciutti
body: Hello [@Pedro Daniel Sanchez](/t5/user/viewprofilepage/user-id/5514105) and welcome to the Community! Your account may be inactive so you'll need Atlassian Support assistance. Maybe [@Patrik S](https://community.atlassian.com/t5/user/viewprofilepage/user-id/4603309) or [@Theodora Boudale](https://community.atlassian.com/t5/user/viewprofilepage/user-id/818086) can assist.


Tags: atl-esc

bitbucket-cloud

cloud
not able clone any file
Asked by Kirankumar I Halagannanavar:

Command: git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks ls-remote <https://kiran35@bitbucket.org/invosion/epm_elekore.git>  
Output:  
Error: remote: Invalid credentials  
fatal: Authentication failed for '<https://bitbucket.org/invosion/epm_elekore.git/>'


Answers:
author: Patrik S
body: Hello [@Kirankumar I Halagannanavar](/t5/user/viewprofilepage/user-id/5513914) ,

and welcome to the Community!

Based on the logs you have shared, it seems you are using Sourcetree to clone the repository.

Could you confirm if you have configured Sourcetree using an [App Password](https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/)?

App passwords authenticate git operations over HTTPS---they're not the same password you use to log in to the UI. If you haven't already, [create a new app password](https://support.atlassian.com/bitbucket-cloud/docs/create-an-app-password/) and [change your credentials in the source tree to use it](https://support.atlassian.com/bitbucket-cloud/docs/add-an-app-password-to-sourcetree-or-another-application/).

Can you try that suggestion and let us know how it goes?

Thank you, [@Kirankumar I Halagannanavar](/t5/user/viewprofilepage/user-id/5513914) !

Patrik S


Tags: bitbucket-cloud

cloud

sourcetree
Getting "Something went wrong" when I click on "Create Workspace" button. Any ideas?
Asked by Adnan Haq:

I'm showing two workspaces in my account for which I don't have Admin rights. I wanted to create my own workspace under my account, but the "Create Workspace" button simply leads to the "Something went wrong" page. Is there a bug in this feature or am I doing something wrong?


Answers:
author: Patrik S
body: Hello [@Adnan Haq](/t5/user/viewprofilepage/user-id/5514087) ,

and welcome to the Community!

Checking internally I see you were able to create a new workspace, so it was likely an instability on the platform on your initial attempt.

Could you please confirm if that was the case and if the workspace creation was successful after you tried again?

Thank you, [@Adnan Haq](/t5/user/viewprofilepage/user-id/5514087) !

patrik S

comments: author: Milislav
body: HI [@Patrik S](/t5/user/viewprofilepage/user-id/4603309) , I'm also experiencing the same thing.


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

By looking at our internal tools, I noticed you seem to have managed to create a new workspace. Could you confirm with us if you followed the same steps and it eventually worked, or if you created the workspace from a different place?

Thank you, [@Milislav](/t5/user/viewprofilepage/user-id/5532127) !

Patrik S


Tags: bitbucket-cloud

cloud