youngmon/atlassian-qna huggingface dataset:
How to set up everything to push to a repository from Linux
Asked by hawstom:

I don't develop very often, and things change and evolve occasionally at Bitbucket. So my configuration breaks. I want to push and pull from my local Linux and from my shared host Linus. In the big picture, I don't care how; I just want to do it the right way.

But at the moment I can push and pull from my local Linux but not from the shared host Linux. Both of them say this:

```
git config -l
user.email=t...m
user.name=Tom Haws
core.editor=nano
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
remote.origin.url=git@bitbucket.org:hawstom/engcalcs.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master
pull.rebase=false
branch.clipboard.remote=origin
```

The shared host fails like this:

1.

```
git pull
Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
```

2.

```
ssh git@bitbucket.org host_key_info
Host key verification failed.
```

Again, I can push from my local Linux. What article do I need or steps do I need to do to get right with Bitbucket from the shared Linux host?

Tom


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

We recently added two new host keys in Bitbucket Cloud, we rotated the RSA host key and removed the DSA host key.

Based on the error message, the machine where the pull fails may still be using our old RSA or the DSA host key to verify the authenticity of Bitbucket Cloud.

If you are using OpenSSH or a compatible client, you can check the steps in this blog post, in the section WHAT YOU NEED TO DO:

* <https://bitbucket.org/blog/ssh-host-key-changes>

We also have the following FAQ page with questions and answers about some other SSH clients and commonly encountered issues:

* <https://confluence.atlassian.com/bbkb/bitbucket-cloud-ssh-host-key-rotation-faq-1235851234.html>

Please feel free to reach out if you have any questions.

Kind regards,  
Theodora

comments: author: hawstom
body: Very nice. Strangely, however, I had a completely different experience today than I did 4 days ago when trying this.

1. My shared Linux host logged me in to bash, which it was inexplicably failing to do four days ago.  

2. As suggested at <https://bitbucket.org/blog/ssh-host-key-changes>, it "switched to the new host keys automatically".

There seems to have been a transient problem with my shell login for some reason. All's well that ends well. Have a very nice day.

Tom


Tags: bitbucket-cloud

cloud
Two on my team are not receiving bitbucket invitations by email
Asked by Steven Parsley:

We are stuck and need a hot fix on an issue. Devs are not getting the bitbucket invites to a specific repository. Can you check and see if they are being bounced.

edit;

we have updated.


Answers:
author: Ben
body: G'day Steven!

I cannot find a workspace tied to your email address so I am struggling to assist further. I have raised a ticket on your behalf in our support system, please check your email and respond there so you may share the emails of those users (do not post this here as it is a public forum).

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
ECDSA host keys keep changing
Asked by collinmaessen:

After following the steps in the key changes document: <https://bitbucket.org/blog/ssh-host-key-changes>

We can still get this error:

Warning: the ECDSA host key for 'bitbucket.org' differs from the key for the IP address '2406:da00:ff00::22c5:2ef4'  
Offending key for IP in /srv/httpd/\*host\*/.ssh/known_hosts:6  
Matching host key in /srv/httpd/\*host\*/.ssh/known_hosts:11

Removing the offending lines solves this for a short time. But then it returns again.

This doesn't happen if we force our git commands to use ipv4, it only happens for traffic over ipv6.

What we want to confirm is the following:

* That there isn't a key configuration issue for bitbucket over ipv6
* That nuking the entire known_hosts file will permanently solve this (this is what we're going to try the next time we encounter this).


Answers:
author: Theodora Boudale
body: Hi [@collinmaessen](/t5/user/viewprofilepage/user-id/3370529),

The reason that you see this error is that there are entries in your known_hosts using our IPs instead of the domain bitbucket.org.

You can remove them by running

```
ssh-keygen -R bitbucket.org && sed -i.old -e '/AAAAB3NzaC1yc2EAAAABIwAAAQEAubiN81eDcafrgMeLzaFPsw2kNvEcqTKl/d' /srv/httpd/*host*/.ssh/known_hosts && curl https://bitbucket.org/site/ssh >> /srv/httpd/*host*/.ssh/known_hosts
```

You could also delete and recreate the known_hosts file and then copy and paste into the new file the entries from <https://bitbucket.org/site/ssh>. However, if you connect to other hosts via SSH as well from this machine, and you have their host keys in the known_hosts, then deleting the known_hosts file will affect the SSH connections to these hosts as well. The next time you connect to such a host via SSH you will see a prompt with the host's fingerprint, asking you if you trust the host, so that its host key gets added to known_hosts.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Changing Source Creation Timestamp from UTC to JST in Bitbucket Repository
Asked by ???:

Hello everyone,

I'm using Bitbucket for my source code management, and I would like to change the creation timestamp of my repository's source code from UTC (Coordinated Universal Time) to JST (Japan Standard Time).

Currently, the timestamps are displayed in UTC, but I would prefer them to be shown in JST for better clarity and understanding.

I have searched through the Bitbucket settings but couldn't find an option to change the timezone specifically for the source code creation timestamps.  
Is there a way to configure Bitbucket to display the timestamps in JST instead of UTC?

If there's no built-in option in Bitbucket, I would appreciate any suggestions or workarounds that can help achieve this.  
Perhaps there's a custom script or plugin that can handle this modification?

Thank you in advance for your assistance!

Best regards,  
Hikaru


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

Bitbucket uses Atlassian account time settings, so if you haven't configured it yet, you can do so by logging in to <https://id.atlassian.com> \> Top right corner of your avatar \> Account settings \> Account preferences and update the timezone.

If you can't locate it, simply log in to <https://id.atlassian.com> and directly access the setting page at the following URL:

<https://id.atlassian.com/manage-profile/account-preferences>

Let me know how it goes.

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud
LFS across projects
Asked by lesley johnston:

I have an existing project using git lfs. As I wanted to start a new project using the same framework I'd been using in Unity, I copied the local files into a new folder, cleaned out all unesccasary files but kept what was useful to make a base template, and then cloned this into a repo under a new project.

I know the two projects will both use the same LFS storage limit as its the same account, but is there any risk this new project repo will impact the original project repo when I push i.e. is there a unique pathway reference to worry about? Or will both projects add to the repo but remain independent?


Answers:
author: Theodora Boudale
body: Hi Lesley,

If I understand correctly, you have two Bitbucket Cloud repositories with LFS and two repositories locally?

A clone directory you have locally usually stores in a configuration file the URL of the remote repo that it is going to use for fetch and push.

You can see that if you navigate from a terminal application to the directory of each clone and execute the command

```
git remote -v
```

The output will look like this if you use HTTPS:

```
origin https://username@bitbucket.org/workspace-id/repo.git (fetch)
origin https://username@bitbucket.org/workspace-id/repo.git (push)
```

Or like this if you use SSH:

```
origin git@bitbucket.org:workspace-id/repo.git (fetch)
origin git@bitbucket.org:workspace-id/repo.git (push)
```

In this case, there is one remote named **origin,** and next to it are the remote URLs that are used for fetch and push.

If you execute this command in the clone directory you have locally for each repo, do you see a different repository URL for each repo?

Kind regards,  
Theodora

comments: author: lesley johnston
body: Hi Theodora,

Yes, two cloud repositories that have a local repo each, they are separated at the Project level within Bitbucket.

Running that command they are different. Both projects return a URL that is specific to its own repo title (with the fetch and push matching in each one).

Does this mean they have independent paths to the LFS?

Thanks,

Lesley


author: Theodora Boudale
body: Hi Lesley,

The URL that is specified for each clone is going to be used for pushing, including LFS. If that is different for your two local repos, then yes, they are independent.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Use of chatgpt integration with bitbucket for code review on pull request
Asked by Praveen:

Hi,  

Does bitbucket have any chatgpt integration for code review or documentation on pull request? Also any plugins available for the same?


Answers:
author: mlavarreda
body: Atlassian is late as always


author: Dusan Spaic
body: Hi,

There is a current [Atlassian Intelligence](https://support.atlassian.com/organization-administration/docs/get-started-with-atlassian-intelligence/) project under construction at Atlassian (EAP). You can [find here](https://support.atlassian.com/organization-administration/docs/understand-atlassian-intelligence-features-in-products/) the features that they are going to release first. They do not mention Bitbucket on the list.

It would be great to have some information from Atlassian about Bitbucket PR integration with openAI. Is this something that you are planning as a next proposed feature? This could really enhance the productivity of the developer teams using Bitbucket Cloud.

Cheers

comments: author: Jordan Davis
body: [https://www.atlassian.com/wac/roadmap/cloud/AI-assisted-code-review---EAP?selectedProduct=bitbucket\&p=01e681aa-25](https://www.atlassian.com/wac/roadmap/cloud/AI-assisted-code-review---EAP?selectedProduct=bitbucket&p=01e681aa-25)


author: Michael R?egg _Mibex Software_
body: Hi [@Praveen](/t5/user/viewprofilepage/user-id/5268020),

Welcome to the Atlassian community!

I'm not aware of any official integration.

We at Mibex are a vendor creating Bitbucket apps.

We are currently experimenting with LLM's and code reviews, especially with ChatGPT.

If you are interested in this topic, I suggest that you follow us on [LinkedIn](https://www.linkedin.com/feed/update/urn:li:activity:7085649355931541505/) where we share our findings regularly.

We also [blogged about some AI app ideas](https://mibexsoftware.com/blog/mibex-ai-hackathon/) we explored.

Which AI integration(s) are you looking for specifically?

Best regards,

Michael from Mibex (app vendor)


Tags: bitbucket-cloud

cloud
Is there a way to ensure more security towards saving ssh keys on bitbucket?
Asked by Raghupathy M:

Is there a way to ensure more security towards saving ssh keys on bitbucket? I have entered my ssh keys for auto gitpull in pipelines. So I need to ensure whether my ssh keys are safe.


Answers:
author: Ben
body: Hi Raghupathy,

All data in Bitbucket Cloud is encrypted at REST, therefore if you have stored your SSH key in Bitbucket it is secure. Only users who have access to the workspace/account can view this SSH key.

Please let me know if more information is needed.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Sourcetree / Kaleidoscope image diff is broken
Asked by Sam Duke:

So I used to use Kaleidoscope to visually inspect changes in PNGs before committing them. To do this from sourcetree I set up kaleidoscope as my visual diff tool and I would right click the images in sourcetree and choose "External Diff"

Recently I've noticed that this behaviour has regressed and no longer works!

No idea if the issue is with kaleidoscope or git or sourcetree, but I know that kaleidoscope can show image diffs through its CLI so I think it's more likely sourcetree...

Hopefully this shouldn't be too hard to fix if it's worked in the past?


Answers:
author: bgannin
body: Hi [@Sam Duke](/t5/user/viewprofilepage/user-id/1148785),

Please file a ticket with details on your version of Sourcetree, OS, and the steps involved in our [public bug tracker](https://jira.atlassian.com/browse/SRCTREE) (or vote on an existing one if you see it) for us to triage and investigate for a future update.

Brian Ganninger  
Principal Developer, Sourcetree
Source tree not showing merge line in history
Asked by Matthew Cawley:

From some pull requests, the merge line is not visible.

What is the cause of this as it leads to misinterpretation of branch state?

Thanks :)

![Screenshot 2019-07-04 at 12.53.53.png](/t5/image/serverpage/image-id/59631i71A835832CE23C08/image-size/large?v=v2&px=999 "Screenshot 2019-07-04 at 12.53.53.png")


Answers:
author: Mike Corsaro
body: Hello! That's odd -- if you click on the merge commit is one of the parent commits listed the commit below it? It would help if I knew the SHA of both parents and the SHA of both commits.

Thanks!

comments: author: Matthew Cawley
body: Sorry for the delayed response :D - I forgot I asked the question.

The issue still exists as you can see from the attached screenshot

![Screenshot 2020-10-21 at 19.53.35.png](https://community.atlassian.com/t5/image/serverpage/image-id/115187i8D463E7350CDF638/image-size/large?v=v2&px=999 "Screenshot 2020-10-21 at 19.53.35.png")

The merge was done using a Pull Request via Bit Bucket.

If I click on the master branch, the commit history doesn't seem to exist, it appears to have squashed it down (default setting from BitBucket)

The 'parents' information is the previous merge onto the master branch.

I'm guessing the issue may be a result of a squashed merged, if it is, is there not a better way of representing this in the UI so it is clear that branch has been closed?
Sourcetree not responding when opening specific repositories
Asked by artbrander:

Sourcetree randomly stops responding when I try to open specific repositories. I've tried uninstalling and re-installing, and cloning the repository from Bitbucket, but it still does not work.

Is there some kind of cache or something that I can clear? I'm at my wit's end.

I'm on Windows 10 running the latest version.


Answers:
author: Mike Corsaro
body: Hello! Is there anything special about these repositories? Are they on a network drive, or really big? Also, are they repos that I can download and see on my machine?

It *might*help to try and disable libgit under Options \> Git as some repos do not play nicely with it.

comments: author: artbrander
body: Thanks! I checked the box labeled "Disable Libgit2 Integration" and it seems to be working now!
why sourcetree is not getting installed
Asked by Poorvi Gupta:

the sourcetree is not getting installed on my laptop windows 10 . i downloaded the exe file from your website and its not installing and running just showing the splash screen.


Answers:
author: Mike Corsaro
body: Hello! Are you sure it didn't create a shortcut on your desktop or start menu? The installer is pretty quick -- there isn't any options. If you like for it to install in a different location you can use the [enterprise installer found here.](https://www.sourcetreeapp.com/enterprise)
Sourcetree?????
Asked by mres0324:

Sourcetree2.3.5??????????????????????????????Sourcetree????????????????????????

???Windows7??

?????????

????????????????????????????????????????

????User/xxx/Appdate/Local/Atlassian/SourceTree.exe_Url_xxx?Startup.Profile?User??????????????????????????


Answers:
author: Ai Hirama
body: ?????????????????????????

Sourcetree3.1.2??????????????????????????

<https://community.atlassian.com/t5/Sourcetree-articles/Sourcetree-for-Windows-CVE-2019-11582-Remote-Code-Execution/ba-p/1100986>

?????????????????????????????????????????????????????

<https://www.sourcetreeapp.com/>


Tags: language-ja
I am not able to switch from my local branch to master branch after linking a sub module.
Asked by Rijil.Kulamullaparambath@harman.com:

I wanted to replace folder in my repository with a remote sub module. For this purpose I initially deleted the folder content then committed those changes to a newly created local branch.

Then I linked with a sub module which is pointing a specific commit. After that I committed the sub module linking changes to my branch. Now I am trying to switch from current branch to another branch but it is giving me error. The error messages shows

*error: The following untracked working tree files would be overwritten by checkout:*

"listed the deleted files in initial step"

*Please move or remove them before you switch branches.Aborting*


Answers:
author: mathagician
body: You need to check the status of your working directory like this \`git status\`. Based on that, ensure if all your work is committed or not. If done, then decide if the untracked files are what you need in future. If yes, then keep a safe copy or else you can use \`git clean\` or \`git clean -f\` (forced clean) for this. Using \`git checkout -f \<branch\>\` is another option. This problem happens as git is keeping a track of those deleted files. Since you have a version control, so restoration is also possible in case things go unintened.

**Assumptions: The linking action successfully replaced the folder.**

comments: author: Rijil.Kulamullaparambath@harman.com
body: Thanks for your support.

Git status shows nothing to commit. Then I tried the git clean option but still the error is there.

And the checkout option shows like below is this expected behavior.

$ git checkout -f feature/submodule_svdioh  
warning: unable to rmdir 'folder which is to be replaced with sub module': Directory not empty  
Switched to branch 'feature/submodule_svdioh'


author: Almasy Seifer
body: git clean -d -f
SourceTree: suppressConflictWarnings fix on a Mac
Asked by Matt Ganz:

Hi -

I'm using SourceTree 3.2.1. I must have inadvertently clicked to suppress merge conflicts on a Mac because they're not showing up anymore. I found the answer to update the user.config in the AppData folder (<https://community.atlassian.com/t5/Sourcetree-questions/Conflict-dailog-does-not-display-I-tried-to-edit-the/qaq-p/798376>) on Windows but in my Mac I check here:

\~/Library/ApplicationSupport/SourceTree.

There's no user config, only my cert, browser.plist, hgrc_sourcetree, ImageCache folder and openWindowList. None of which appear to have this property.

Where should I be looking to show the merge conflicts again. Any tips are greatly appreciated.


Answers:
author: bgannin
body: Hi [@Matt Ganz](/t5/user/viewprofilepage/user-id/3431712),

Run the following command in Terminal:

*defaults remove com.TorusKnot.SourcetreeNotMAS suppressConflictsWarning*

and then launch the app. That removes the preference value entirely, restoring you to the default (no pun intended.)

Cheers,

Brian Ganninger  
Principal Developer, Sourcetree

comments: author: Matt Ganz
body: Where do I have to be? Whether I run this command from my home directory or Library/Preferences (where the com.TorusKnot.SourcetreeNotMAS is located) I get the following error:

Domain (com.TorusKnot.SourcetreeNotMAS) not found.  
Defaults have not been changed.


author: Matt Ganz
body: Are you sure it's not defaults delete....instead of remove? This deletes the domain. Or even this:

```
defaults write com.torusknot.SourceTreeNotMAS suppressConflictsWarning 0
```


author: bgannin
body: That also works :)
Using Mercurial with SourceTree and BitBucket
Asked by HjoshM:

On 30 June, I installed the latest SourceTree and Mercurial, created a new BitBucket repository, and started working on a software project. I commited and pushed successfully without any problems.

The next day 01 July, I continued working, but when I tried to push, I got the following error message:

```
hg push --new-branch default

warning: connecting to bitbucket.org using legacy security technology (TLS 1.0)

abort: error: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:590)
```

Using an exact search, I do not find any posts on this very error message, but there are similar posts that indicate some outdated versions being the problem, etc...

What am I missing or doing wrong that I cannot push to BitBucket?


Answers:
author: Mike Corsaro
body: Hello! Which OS are you currently using?

comments: author: HjoshM
body: Hi Mike! I am using OS X El Capitan version 10.11.6


Tags: mac

mercurial
unable to resolve reference : reference broken. How to solve this?
Asked by Venalyn:

it -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks fetch --prune origin  
From <https://bitbucket.org/ngeksyo/mac-haik-crm>  
\* \[new branch\] Jaison/master_branch -\> origin/Jaison/master_branch  
error: cannot lock ref 'refs/remotes/origin/dale/campaign_template_builder': unable to resolve reference 'refs/remotes/origin/dale/campaign_template_builder': reference broken  
! \[new branch\] dale/campaign_template_builder -\> origin/dale/campaign_template_builder (unable to update local ref)


Answers:
author: bgannin
body: Hi [@Venalyn](/t5/user/viewprofilepage/user-id/3427761),

Your local working copy and the remote repository are different enough that Git is unable to resolve that. I recommend cloning the remote repository again to a new location, create a patch from the commits or differences, and then apply it to a new branch. Hope that helps.

Brian Ganninger  
Principal Developer, Sourcetree

comments: author: mvaldes
body: Hi [@Venalyn](/t5/user/viewprofilepage/user-id/3427761)

[@bgannin](/t5/user/viewprofilepage/user-id/744444)'s solution in large projects is a little: kill a fly with cannonball. You can remove the references to the failing branch in packed-refs, info/refs inside the .git folder

Regards,
Sourcetree reinstallation
Asked by jmdrapeau:

I have version 3.1.3 installed on Windows 10. It crashes on me on a regular basis.

I was thinking of reinstalling in the hopes it would fix the bugs.

What's the safest way of doing this without losing current settings and repository mappings?


Answers:
author: Ana Retamal
body: Hi JM,

You can just download a newer version from [our site](https://www.sourcetreeapp.com/) and install it, it will just replace the old version and your previous information data will remain. If you have any other questions, let us know!

Cheers,

Ana

comments: author: jmdrapeau
body: That worked for me.

Thanks!!


author: Ana Retamal
body: Glad to hear that :D

Have a good day,

Ana


Tags: windows