youngmon/atlassian-qna huggingface dataset:
Import an open source project from github and support taking upstream updates while customizing
Asked by Bob Chesley:

I need to import an open-source project from GitHub to bitbucket to allow for customization of the project as part of a larger product. We will be making changes to the open-source base but will want to be able to merge updated features and fixes from time to time.

This scenario is discussed with some possible options here - <https://stackoverflow.com/questions/8137997/forking-from-github-to-bitbucket>

That post is a bit older and I wanted some more current advice for this use case. We do not anticipate contributing to the original open-source project.


Answers:
author: Stefan Salzl
body: Hi [@Bob Chesley](/t5/user/viewprofilepage/user-id/4507801) ,

If I got your question right would the following link might solve your problem:

<https://support.atlassian.com/bitbucket-cloud/docs/import-a-repository-from-github-or-gitlab/>

Looking forward to your feedback.

Best  
Stefan

comments: author: Bob Chesley
body: Hi [@Stefan Salzl](/t5/user/viewprofilepage/user-id/4616993) I had seen that link. The wrinkle here is that we still want to be able to merge bug fixes and enhancements from the original source repo easily but use our new master for our changes.


author: Stefan Salzl
body: so to get that clear:  
You would like to eg. develop in github-repo and then cherry-pick/merge things to bitbucket-repo?


Tags: bitbucket-cloud

cloud

github

integration

open-source
Prerequistes - installing multiple products on a single server (IE Jira, Bitbucket and Confluence)
Asked by Rodger Sweet:

Since the install appears to use the default USERS Tablespace, Getting errors after Jira Install when installing Bitbucket getting errors that existing tables collide with tables for Jira. How do I fix this so I can complete the Bitbucket install and subsequently the Confluence Applications. Does each application need it own database, tablespace etc?


Answers:
author: Nic Brough -Adaptavist-
body: Yes, each installation needs its own database. (Not database server, just database - it's not uncommon to see Atlassian services all using the same database server - I've got one Postgres service running several databases, one for Confluence, one for Jira, Crowd, Bitbucket, etc)

comments: author: Rodger Sweet
body: Nic,

Thanks for the response, We actually turned up separate VM RHEL 8 Servers one each for the Jira, BitBucket and Confluence and this is working very well for the environment.


Tags: bitbucket-server

confluence

jira

server
Can bitbucket cloud access be restricted to company devices?
Asked by Fadi Gebran:

Hello,

With more people working from home, I'm looking into ways to have more secure practices when it comes to handling source code. I was wondering if there's a way to only allow bitbucket access from company authorized devices?


Answers:
author: Theodora Boudale
body: Hi [@Fadi Gebran](/t5/user/viewprofilepage/user-id/4637970),

I just wanted to add that we have a feature request to restrict access using MAC addresses:

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

If that's something you'd be interested in, I would encourage you to add your vote in the feature request (by selecting the **Vote for this issue** link), as the number of votes helps the development team and product managers better understand the demand for new features.

You are welcome to leave feedback, and you can also add yourself as a watcher (by selecting the **Start watching this issue** link) if you'd like to get notified on updates.

Kind regards,  
Theodora

comments: author: Fadi Gebran
body: Thanks, that feature will definitely solve the prob.


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

Kind regards,  
Theodora


author: edwin vasquez
body: Hello [@Fadi Gebran](/t5/user/viewprofilepage/user-id/4637970) ,  

I have not seen where you can limit to a specific device or company approved devices. If you use SAML via Atlassian Access, I wonder if there is a way to limit log ins based on IP addressing if you are using a VPN.


Tags: bitbucket-cloud

cloud
Unable to push even after Undoing Last Push
Asked by sheeba_y:

Hi,

My repository size is 4.11 GB.

Followed <https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/> and performed 'Undo Last Push'. Now the repository in the bitbucket is correct. but the size remains the same.

Appreciate immediate help.

Thanks in advance,

Sheeba Y


Answers:
author: Syahrul
body: Hi [@sheeba_y](/t5/user/viewprofilepage/user-id/4776956) ,

Welcome to the community!

I have proceeded to trigger a Git GC on the affected repositories which once it's completed the size has been reduced to 1.8GB.

Could you check and verify this with me?

Cheers,

Syahrul

comments: author: sheeba_y
body: Hi [@Syahrul](/t5/user/viewprofilepage/user-id/744536) ,

Thank you very much. Now the size is 1.8 GB.

Regards,

Sheeba


Tags: atl-rvw

bitbucket-cloud

cloud
Is it possible for Bitbucket pipeline to build a docker image from private ECR base image?
Asked by Shuo Hua:

In our pipeline we would like to build a docker image that uses a base image from a private AWS ECR and then push the build image to our AWS ECR. However when doing that following the standard setup, we got following error:

    docker build -t <image-name> .

    Sending build context to Docker daemon  3.072kB

    Step 1/6 : FROM <AWS-ECR>/<base-image>

    Head FROM <AWS-ECR>/v2/<base-image>/manifests/latest: no basic auth credentials

*** ** * ** ***

Our pipeline setup is the following

```
custom:
    build_and_push_to_ecr:
        - step:
            service:
                - docker
            script:
                - export AWS_REGION=<AWS-REGION>
                - export AWS_ACCESS_KEY_ID=<AWS-ACCESS-KEY-ID_THEIRS>
                - export AWS_SECRET_ACCESS_KEY=<AWS-SECRET-ACCESS-KEY_THEIRS>                
                - docker build -t <image-name> .
                - pipe: atlassian/aws-ecr-push-image:1.4.2
                  variables:
                      AWS_ACCESS_KEY_ID: <AWS-ACCESS-KEY-ID_OURS>
                      AWS_SECRET_ACCESS_KEY: <AWS-SECRET-ACCESS-KEY_OURS>
                      AWS_DEFAULT_REGION: <AWS-REGION>
                      DEBUG: 'true'
                      IMAGE_NAME: <NAME>
                      TAGS: ${BITBUCKET_BRANCH}
```

The Dockerfile we want to build looks like

    FROM <AWS-ECR>/<base-image>

    ...

*** ** * ** ***

So is it possible for the docker service to build with a private base image or it must be public?


Answers:
author: Ankit Gupta
body: Your docker is not logged in with the AWS ECR credentials. You need to add the below line to the script before \`docker build\`:

```
?aws ecr get-login-password --region $AWS_REGION | docker login --username AWS --password-stdin $AWS_ECR?
```

comments: author: Shuo Hua
body: Thanks!

That did the trick


author: rahulmr
body: Could you please share which image you have taken and how do you implemented it? What is the value of $AWR_ECR and where you added this command? a sample bitucket-pipelines.yml could be a great resource to learn


author: stephenrichards
body: [@Ankit Gupta](/t5/user/viewprofilepage/user-id/4704323) - How would this work if I am using OIDC?


Tags: aws

bitbucket-cloud

bitbucket-pipelines

cloud
can't create new repositories today
Asked by Aleksandr Znakomskii:

when i'm create new repo - i've got this message  
Your account now has more than 30 repositories created today. Don't worry! You can still create more for free, but in order to [prevent Bitbucket misuse](https://www.atlassian.com/legal/acceptable-use-policy), we need to [hear from you](https://support.atlassian.com/bitbucket-cloud/).


Answers:
author: Caroline R
body: Hi, [@Aleksandr Znakomskii](/t5/user/viewprofilepage/user-id/4777050), welcome to the community!

I saw that you created a ticket with our support related to the same question, so to avoid any possible misunderstandings or miscommunication that may arise from discussing the same matter on two different platforms, let's focus on the ticket instead.

Kind regards,  
Caroline


author: Fabio Racobaldo _Herzum_
body: Hi [@Aleksandr Znakomskii](/t5/user/viewprofilepage/user-id/4777050) ,

Welcome to the Atlassian community!

You need to raise a support request to <https://support.atlassian.com/contact/#/>

Hope this helps,

Fabio


Tags: bitbucket-cloud

cloud
How can I get commits for individual Branches?
Asked by Bhaskar Ramagiri:

I am not able to see commits of some branches.


Answers:
author: Syahrul
body: Hi [@Bhaskar Ramagiri](/t5/user/viewprofilepage/user-id/4776910) ,

G'Day!

When opening the commit tab, you can select the branch from the drop-down menu and select the branch. This will show the list of commits in the branches.

However, if you are unable to see that can you check and verify if the branch and commits exit by cloning the repositories and running the following commands:

```
git branch -v #to list the branch
# If branch exists proceed next
git log <branchname>.. 
```

If both branch and commits exist then please share with me the affected repositories' name so I can investigate the issue further.

Cheers,  
Syahrul

comments: author: Bhaskar Ramagiri
body: Hi Syahrul,

Good Day!

I did as suggested by you.Both branch and commits exist.Please find below affected repositorie. Please help me to get individual branch commits.

[/payswiffone](https://bitbucket.org/payswiff/payswiffone/src/develop/)


author: Syahrul
body: Hi [@Bhaskar Ramagiri](/t5/user/viewprofilepage/user-id/4776910)

Noted, I did run a git GC on the repositories to clean it up, can you check again and confirm with me if the commits still missing?

Cheers,  
Syahrul


author: Bhaskar Ramagiri
body: Hi Syahrul,

Thank you.Now I am able to see commits.


author: Syahrul
body: Hi [@Bhaskar Ramagiri](/t5/user/viewprofilepage/user-id/4776910)

Awesome :) Glad to hear that the issue has been resolved.

I believe you were affected by one of our bugs with missing commits:

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

A quick GC should help resolve the issue, feel free to reach out to supports if you have any similar issues in the future.

Cheers,  
Syahrul


Tags: bitbucket-cloud

cloud
Can't Connect to Bitbucket
Asked by Manjunath Adisesha:

I cannot connect to Bitbucket account from SourceTree. Though I can login directly to Bitbucket from a browser.

SourceTree reports a Login Failure error.


Answers:
author: Bal?zs Szakm?ry
body: There are several possibilities:

* Your stored password is wrong
* If you are using SSH:
  * BitBucket does not have your SSH key
  * your firewall is blocking the SSH connection

What is the exact error message you are getting?
sourcetree whitespace issues
Asked by Shaunt Kojabashian:

Hi guys, we're fighting with one of our repositories and just seeing a lot of really bizarre git (and/or source tree) issues with whitespace.

Here's what I know...

* We're in windows environment
* people are using different git clients (source tree, git bash, etc)
* Seems to be an issue for some users and not for others

Symptoms include: files being marked modified when nothing has changed (aka whitespace / line ending issues).

So things I tried

* git checkout --file ... still files are modified
* delete the file checking it out again - still show as modified modified
* try stashing the files - still show as modified...
* git reset --hard - same issue...

Any ideas? There's a lot of confusing information around this topic regarding auto=crlf - although i'm not sure I fully understand how to verify there are no issues.

Curious, does anyone have experience with this sort of issue? Any help you can provide?

Anyone use any companies out there that specialize in git source control that might be able to help?

This issue is really frustrating and would really appreciate some help :smile:

Thanks!


Answers:
author: Bal?zs Szakm?ry
body: The cause of your problem is indeed the line endings. The people who have autocrlf=true are committing unix-style line-endings (while actually working with windows-style line endings) and the ones without this setting are committing a mix of unix-style and windows-style endings.

The solution is very simple: get everybody to set autocrlf=true in their Git configuration:

```
git config --global core.autocrlf true
```

and this problem will go away after a very short time. (You can expedite it by settings this yourself and committing all line-ending changes you have locally to all files.)
What language and framework SourceTree written with?
Asked by Vladislav Yaroslavlev:

What language and framework SourceTree app written with? If it is not a secret.


Answers:
author: Bal?zs Szakm?ry
body: This question has already been answered [here](https://answers.atlassian.com/questions/153706/what-technologies-are-used-to-develop-sourcetree).

comments: author: Valerij Dobler
body: This other post is now not available.
SourceTree registration (already registered)
Asked by Stuart Leyland:

I've had to install SourceTree on a new machine and don't have the licence key from when I initially registered my version (i.e. signed up with my.atlassian.com). I can log into my.atlassian.com but cannot find any information about SourceTree, nor any way of identifying a licence key which I can then import into SourceTree.

I tried the registration button in SourceTree again, but it gave an error (when I used the same email address that I had registered previously with - hoping that it would let me login instead). The error seemed to be related with an unknown piece of HTML content returned from whatever service it was talking to.


Answers:
author: minnsey
body: Hi

You should be able to see your SourceTree license listed in <https://my.atlassian.com.> If it is there, expanding the arrow by the license will allow you to download the license again.

Screen Shot 2015-06-16 at 8.32.31 am.png  
[](https://community.atlassian.com/t5/Sourcetree-questions/SourceTree-registration-already-registered/qaq-p/199541?attachment-id=11396){#link_116a3cfccb9d4d}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/5750/1/Screen%20Shot%202015-06-16%20at%208.32.31%20am.png){#display_116a3cfccb9d4d_0}
Something Woring with SourceTree
Asked by yaowei li:

there have something wrong with my SourceTree, when I create a new clone from url? the application will give me an error (illustrated above)?I think the error is caused by myself?when I configuration Sourcetree for the first time ,I Configure the wrong git user name?Uninstall sourcetree configuration file will still on my computer ?So I must find the configuration file and delete it?but i can't find the configuration file ?  
Waiting for your answer Thank you very much


Answers:
author: Bal?zs Szakm?ry
body: The screenshot you are referring to is missing, please add it to your question.
My local Working folder is not recognized as a valid git working copy in Sourcetree?
Asked by miq68:

I have a valid git working copy on my local hard drive that by some reason the folder was not available when I started Source Tree yesterday .

When I try to add this working directory to sourcetree, I get an error saying it isn't a valid working directory. I've tried two ways:

1. File \> Open \> Select Directory

Error: the path 'somepath/workingdir' is not a valid Git repository working copy.

2. Push the Clone/New button. Select the "Add Working Copy" tab. Select the correct working copy path.

Repository Type: This is not a valid working copy path.

I remember that I was prombted to update my License When I started Source Tree and I accepted to it.

I'm using Windows 8 with Sourcetree 1.6.14.0


Answers:
author: Seth
body: That sounds like the kind of error SourceTree displays if it doesn't have or can't find the git executable itself. Does SourceTree work with other repositories?


author: Bal?zs Szakm?ry
body: First, please verify that your folder is indeed a valid Git clone.

You can do this e.g. by opening a command prompt to the folder and executing

```
git fetch
```

Unless the fetch runs successfully, there is something wrong with your clone.
performances issue with git submodules
Asked by bb temp:

Hello, i'm maintaining a git repository which contains 2 dozen of git submodules. I use source tree to do all the operations but it's extremely painfull.

* in the staging area, when i add an updated submodule S.T can hang for several seconds.
* after pushing, the history graph takes age to update. sometimes i even have to restart the software.
* after pulling from its origin, the grey icon that represents a submodule still has an arrow drawn on top.
* the edit box where the commit messages are typed sometimes sticks for age until the caret gets activated.
* when ST sticks, the process manager shows 0 activity.
* in stagging area when i click on a 'not yet added' submodule the diff view takes age to display the 2 lines that show + commit\<sha 54434343434544...\> and - commit\<sha646454646864\>

Well, in a nutshell, it's a PITA.

Is there a magic setting to get rid of all these problems ?


Answers:
author: Bal?zs Szakm?ry
body: There are two options in Tools/options/general that might make your life easier: "refresh automatically when files change" and "check default remotes...". Turn both of these **off**. Afterwards, if you suspect that the data on your screen is out of date, refresh with F5.

(SourceTree is not very well suited for this task, because it does all kinds of automatic magic about submodules in the background. Git Extensions would probably a better choice, with all the submodule-related operations done manually.)


Tags: git

performance
New Gitflow causes loss of data
Asked by James Pitchford:

Each time I try to add a new GitFlow action (e.g. to add a new feature or hotfix) to my local git file in SourceTree the Head seems to revert back to some very old position, causing recent data to be lost. There doesn't seem to be a way to restore the lost data other than by using a TimeMachine backup.

What am I doing wrong?


Answers:
author: Seth
body: Gitflow always creates those branches from the "develop" branch (or whatever branch name you've configured gitflow to use in that position". If you've stopped updating that branch, it would cause what you're describing.

comments: author: James Pitchford
body: Seth

Thanks for the response - yes that does seem to be the case. Being new to GIT, how do I finish updating the "develop", without loosing it (I don't want to merge that branch) so that GITFlow attaches to the current Head.


author: Seth
body: I'm not sure what you're going for. You say you want to update develop, but you don't want to merge anything into develop? What does this mean? If you want to get more recent commits into develop, you'll need to merge. Is there a reason you don't want to do that?


author: James Pitchford
body: Seth

I'm probably not used to the correct GIT terminology. I have a branch that is labelled "develop" that I was working on some time ago, but that has some incomplete code in it. I would like to return to complete this later.

Now, I would like to use Gitflow to add some new branches to the work I am currently doing but it keeps reverting to the "develop" branch as described earlier.

What do I need to do to get out of this loop?
git push single revision
Asked by Mihai Oprescu:

If I have multiple revision to push to the origin repository, can I pick which ones to push ?


Answers:
author: Bal?zs Szakm?ry
body: In the Push dialog, there are checkboxes on the left side for each branch. The ones you select will be pushed. (All commits in those branches.)

comments: author: Mihai Oprescu
body: Ok, but can I choose which commits to push from a certain branch, or do I have to push all commits ?


author: Mihai Oprescu
body: Ok, but can I choose which commits to push from a certain branch, or do I have to push all commits ?


author: Bal?zs Szakm?ry
body: You cannot choose which commits get pushed from a branch, all commits are pushed.


author: Tim Crall
body: That's generally true.If for some reason you wanted to push a subset of the commits on a given branch, as long as the commits that you wanted to exclude were at the end of the branch, you could probably do something like:checkout the last commit you want to pushcreate a branch at that commitpush your new branch
Release branch create v edit permission.
Asked by neylonp:

Is it possible to enable a small group of individuals to create a release branch, but enable a larger group to edit this release branch? I can't see a way of doing this via Stash permissions.


Answers:
author: Bal?zs Szakm?ry
body: If the branch permissions allow someone push to certain branches, they will also be able to create those branches. So the only way to do this is to

* restrict release/\* to the small group
* restrict each individual release/xyz branch (after it is created) to the larger group

The drawback is that you need to do the second one for every new release branch.
why show all view does not display ignored and not tracked files
Asked by Pascal Hacquart:

in the working copy view, you can choose "not tracked" or "ignored" files, but when you choose "all", you see only all the files tracked by git, and not the others... If you want to track/add a new file, you cannot make it from source tree by seeing really all files ?


Answers:
author: Seth
body: "Pending" will include all untracked, removed, modified, and conflicted files. I find this to be the most useful filter in almost every situation. Of course, my primary repository has nearly 10,000 files.

None of the options will show ignored files except "Ignored". If you want them to show up, don't ignore them.
How do I get the list of all files modified by a commit back?
Asked by Garrett Fritz:

At some point the window that allowed selecting files affected by a commit disappeared and I need that back, what is the setting to allow this window to be shown again? It displays fine when looking at uncommitted changes or if I open the 'checkout' window...

Screen Shot 2015-06-09 at 3.12.48 PM.png

Screen Shot 2015-06-09 at 3.14.02 PM.png  
[](https://community.atlassian.com/t5/Sourcetree-questions/How-do-I-get-the-list-of-all-files-modified-by-a-commit-back/qaq-p/128582?attachment-id=2888){#link_1173f9967152a5}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/3813/1/Screen%20Shot%202015-06-09%20at%203.14.02%20PM.png){#display_1173f9967152a5_0}  
[](https://community.atlassian.com/t5/Sourcetree-questions/How-do-I-get-the-list-of-all-files-modified-by-a-commit-back/qaq-p/128582?attachment-id=2889){#link_1173f9967152a5_0}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/3813/2/Screen%20Shot%202015-06-09%20at%203.12.48%20PM.png){#display_1173f9967152a5_2}


Answers:
author: sreekumar_menon
body: Interesting , it does show in my source tree for the previous commits also. Did you try pulling that window to the right to see if it is hidden behind.

comments: author: Garrett Fritz
body: yeah Ive tried all kinds of dragging, all it does is expand the left most toolbar...

Ive even uninstalling and wiping all the preferences doesn't fix it! totally stumped...


author: sreekumar_menon
body: My Source tree version is 2.0.5.2 (Mac) , if that helps.


author: Garrett Fritz
body: I believe you, it also used to work for me, I am using the same version...


author: Bal?zs Szakm?ry
body: I am using the Windows version, but based on your screenshots, you need to drag the white line between the diff and the remote branch list (just at the left edge of the red ellipse in the 2nd screenshot) to the right.


author: Seth
body: If you look closely at the two screenshots, the grey line between the branch list panel and the diff panel is slightly thicker in the "bad" version. I think you've got to grab and drag an area that's only 1 pixel wide that is immediately adjacent to the branch panel edge that you've managed to grab so far.


author: Garrett Fritz
body: wow, there was actually a ultra tiny area there to fix it, thank you so much!