youngmon/atlassian-qna huggingface dataset:
Increase "show more lines" count
Asked by bitzor:

Hello,

When reviewing a PR there are little up/down arrows to show more code surrounding what is being reviewed. At this moment clicking one of these buttons exposes another 10 lines of code. Is this configurable at all? I would really love to have this limit doubled or tripled.

Not sure if this is already an answered question, but my google searches haven't turned up much.

Thanks,


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

I'm afraid that this is not configurable. I can create a feature request about this for our development team to consider, please feel free to let me know if you'd like me to proceed with that.

Kind regards,  
Theodora

comments: author: bitzor
body: That would be wonderful, thank you.

I think an appropriate feature too would be something like other products have where there is a button to show the lines up to the piece of displayed code. For example, lets say I have a PR open where lines 1-10 are being shown and lines 100-110 are being shown. I'd like a button to show all lines between 10 and 100. I think both Github and Gitlab support this (at the very least the former does).


author: Theodora Boudale
body: Hi [@bitzor](/t5/user/viewprofilepage/user-id/5259709)

Thank you for the feedback. There is actually one option that I missed earlier: when viewing a file in a PR's diff, you can select the three dots at the top right corner of the file \> then select **View entire file**.

![Screenshot 2023-07-10 at 15.44.48.png](https://community.atlassian.com/t5/image/serverpage/image-id/267766i3FD3BE2D5EAA2CA0/image-size/large?v=v2&px=999 "Screenshot 2023-07-10 at 15.44.48.png")

Is this something that works for you?

Kind regards,  
Theodora


author: bitzor
body: Hello Theordora,

This works for small files, but if one is working on a larger file (as I often do) this option tells me "the file is too large to be displayed".


author: Theodora Boudale
body: Hi [@bitzor](/t5/user/viewprofilepage/user-id/5259709),

Thank you again for the explanation.

I went ahead and created a feature request here:

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

Please make sure to add your vote to it (by selecting the **Vote for this issue** link) to express your interest. You are more than welcome to leave a comment there, and you can also add yourself as a watcher (by selecting the **Start watching this issue** link) if you'd like to get notified via email on updates.

Implementation of features is done as per our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) and any updates will be posted in the feature request.

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
[v0.8.0] Customize the subject of the email
Asked by Pierre KUHN:

Good morning,

I want to modify the content of SUBJECT and BODY_PLAIN but I can't find to use the text of the committee, which values to use? ${MESSAGE}?

THANKS


Answers:
author: Theodora Boudale
body: Hi Pierre!

Are looking to get the commit message of the commit that triggered a Pipelines build?

If so, this is not exposed in a variable, but you can use a Git command in the script of your bitbucket-pipelines.yml file to get it.

Both of these commands will save the message of the commit in a variable named MESSAGE:

```
MESSAGE=$(git log -n 1 --pretty=format:%s $BITBUCKET_COMMIT)
```

```
MESSAGE=$(git show -s --format=%B $BITBUCKET_COMMIT)
```

You can use either one in your yml's script to get this value.

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

email

notification
Repository size exceeds limit
Asked by Eobin G:

Hi,

Bitbucket showing a warning that size of my repo exceeds 2GB .when i checked my repository i noticed that it used 2.09 GB of 4 GB. i tried resetting last commit.but it didnt helped.

Can you please run **git gc** for the remote repository?


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

I ran a git gc on the repository that was over 2 GB and its size has now been reduced.

Resetting the last commit and pushing is something that works if your repo is over the 4 GB limit. If your repo is below the 4 GB limit, you can create a question in community and request a git gc.

We have a feature request to allow users to trigger a git gc on their remote repos that you can vote for: <https://jira.atlassian.com/browse/BCLOUD-11593>

Kind regards,  
Theodora

comments: author: Eobin G
body: Thank you so much for your help [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086)   
and thanks for sharing the link i will look into it.


Tags: bitbucket-cloud

cloud
getting error while creating ssh key
Asked by sayali_v:

Getting error - Could not open a connection to your authentication agent. After the command - ssh-add \~/{private_ssh_key}\~


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

Based on the output, it looks like your SSH agent may not be running. Can you first try starting the SSH agent with the following command, and then try to add the private key?

```
eval $(ssh-agent)
```

To ensure that the correct SSH key is used when connecting to Bitbucket, update or create your SSH configuration file (**\~/.ssh/config**) with the following settings:

```
Host bitbucket.org
    AddKeysToAgent yes
    IdentityFile ~/.ssh/{ssh-key-name}
```

Where **{ssh-key-name}** replace with the name of your private key, whose public key you have uploaded to Bitbucket.

You can check all the steps needed to set up SSH in one of the following guides, depending on the operating system of your computer:

* <https://support.atlassian.com/bitbucket-cloud/docs/set-up-personal-ssh-keys-on-macos/>  

* <https://support.atlassian.com/bitbucket-cloud/docs/set-up-personal-ssh-keys-on-windows/>  

* <https://support.atlassian.com/bitbucket-cloud/docs/set-up-personal-ssh-keys-on-linux/>

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Unable to clone git
Asked by Prem Subudhi:

General steps is not working.


Answers:
author: Tansu Akdeniz
body: Hi [@Prem Subudhi](/t5/user/viewprofilepage/user-id/5259555)

Welcome to the community.

Please share more information about your problem. Also, search for the related community discussions which might help you.


Tags: bitbucket-server

server
Self-hoster linux shell runner stops when I logout of SSH connection on the remote host
Asked by Svetlozar Petkov:

When I go into the remote host that has the bitbucket linux shell runner installed after I initialize the command the runner goes online, but if I leave the SSH session or close the window from my terminal the runner goes back to offline. Any good solutions on resolving this ?


Answers:
author: Clifford
body: Hi you need to run the command under nohup <https://www.geeksforgeeks.org/nohup-command-in-linux-with-examples/>

comments: author: Svetlozar Petkov
body: Thank you this worked wonderfully.


author: Theodora Boudale
body: Hi [@Svetlozar Petkov](/t5/user/viewprofilepage/user-id/5259535) and welcome to the community!

There are several utilities in Linux that allow you to keep processes running after ending an SSH session.

[screen](https://manpages.ubuntu.com/manpages/lunar/en/man1/screen.1.html) is one of them and it is installed by default on some Linux distributions. You can check if it is already installed with the command

```
screen -v
```

If it isn't, you can check the following guide on how to install it on different Linux distributions:

* <https://linuxize.com/post/how-to-use-linux-screen/>

Please note that this needs to be installed on your remote host, not on your own computer.

When screen is installed, you can start the runner with the following command:

```
screen <command to start runner>
```

Replace **\<command to start runner\>** with the preconfigured command we provide to start your runner.

Then, press **Ctrl + A** and then **Ctrl + D**

This will "detach" your screen session, but leave your process running, and you can leave your SSH session.

If you log in via SSH later, you can type **screen -r** to see the screen with the runner and **Ctrl + A** and **Ctrl + D** to detach again.

<br />

There are other tools as well, but I haven't tried them. You can check the answers in the following post from the ubuntu forum if you want to explore different tools:

* <https://askubuntu.com/questions/8653/how-to-keep-processes-running-after-ending-ssh-session>

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Cannot login in sourcetree with a corporative gmail account
Asked by antrax97:

Hi, I'm trying to clone a repo assigned to a corporative account. The problem is that once i try to clone the repo through sourcetree, a login popup comes up multiple times and since the way the atlassian account was created did not require a password since the account is managed by the company i work for, i find my self stuck there, for i have no password for that gmail account, and i mean the account automatically generates a password everytime authentication is done.


Answers:
author: Mikael Sandberg
body: Hi [@antrax97](/t5/user/viewprofilepage/user-id/3301424),

Welcome to the Atlassian Community.

Are you working on Windows or MacOS? If you are on Windows, does the pop-up window say Git Credential Manager for Windows? If so, then you disable it by running these commands:

    git config --system --unset credential.helper
    git config --global --add core.askpass ""

The first one will disable the Git Credential Manager for Windows, and the second one will turn it off for OpenSSH.


Tags: bitbucket
Source Tree 3.1 (GIT) Source file and configuration data files
Asked by james gibbons:

Good morning

Can you help please

Can you send me a link to Source Tree 3.1 (GIT) Source file and configuration data files I need to package the product for deployment and i cannot find the link to the source media and config data

Regards

James Gibbons

SAM manager

Easy jet


Answers:
author: bgannin
body: Hi [@james gibbons](/t5/user/viewprofilepage/user-id/3299746),

The installers for all platforms are available on the [website](https://www.sourcetreeapp.com/). There are no specific configurations available or provided. If you are deploying on Windows in an enterprise environment [see here](http://sourcetreeapp.com/enterprise).

Hope that helps,

Brian Ganninger  
Principal Developer, Sourcetree
using a socks proxy with sourcetree to connect to bitbucket
Asked by Jeremy Wiley:

We have a socks proxy between our client machines and server assets which includes bitbucket. Is there a proxy configuration in sourcetree we can leverage to connect over the socks5 proxy protocol?


Answers:
author: bgannin
body: Hi [@Jeremy Wiley](/t5/user/viewprofilepage/user-id/1186189),

Sourcetree does not include any proxy configuration support in the UI. You should be able to manually edit your global config to do so per this [StackOverflow answer](https://stackoverflow.com/questions/15227130/using-a-socks-proxy-with-git-for-the-http-transport). ST respects your global and per repository settings as it uses your default command line environment to perform actions.

Cheers,

Brian Ganninger  
Principal Developer, Sourcetree
It is not possible to install current version 3.1.3 for windows
Asked by Uwe Kuehn:

I tried to install the current version of source tree.

But there is some problem. It requries some authentification (really stupid) to install the software, but the install script does not work.

I get either ... some "invalid redirect_uri" by using BitBucket and failed to login with the bucket server https://\[owner\]@bitbucket.org/\[owner\]/.

It looks like impossible to activate an OAuth to work with the installation process (since nothing is explained).

I cannot understand or accept, that I have to register to bitbucket/atlassian e.g. with or without an google-signin, and after that just getting the stupid error : "invalid redirect_uri".  

How I get installed source tree?

Best


Answers:
author: Andy Heinzer
body: Hi Uwe,

Just wanted to follow up on this problem. The incident has been resolved at this time. You can see some more details in <https://bitbucket.status.atlassian.com/incidents/l50d1j43zdj9>

There was a problem with Bitbucket Cloud in regards to the use of OAuth for authentication. Sourcetree installs that selected this method to setup were unable to proceed as a result. Apologies for the inconvenience. You should now be able to complete this install/integration.

Regards,

Andy


author: Mikael Sandberg
body: Hi Uwe,

Welcome to the Atlassian Community.

This is a known issue and Atlassian is working on resolving it. Please see this thread for more information, <https://community.atlassian.com/t5/Sourcetree-questions/Cannot-login-to-bitbucket-in-order-to-use-sourctree/qaq-p/1100226>

comments: author: Uwe Kuehn
body: thx a lot ... it worked fine :-)
BitbucketOAuth????????????????????????????
Asked by pig gold:

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

?SourceTree??????????????????Bitbucket?????

![WS000001.JPG](/t5/image/serverpage/image-id/56749i87142A1385A89BFE/image-size/large?v=v2&px=999 "WS000001.JPG")?????????????????????????????????????

![WS000000.JPG](/t5/image/serverpage/image-id/56750i7CCF79577CF2F7F3/image-size/large?v=v2&px=999 "WS000000.JPG")

??????

OS?Windows10

??????Google Chrome?

???Edge???????????????

SourceTree???????3.1.3

?????????3.0.8???????????????????????

NW?????????????????

??


Answers:
author: Andy Heinzer
body: Hi

Sorry to hear about this problem with logging into a Bitbucket account from Sourcetree. However this is not just you that is having this problem. There is currently an outage in regards to Bitbucket Cloud's OAuth tokens are not working correctly. This is the cause of the inability to login here and in turn showing that 'Invalid redirect_uri' error message.

Atlassian has just updated our StatusPage about this incident that you can use to track this problem in <https://bitbucket.status.atlassian.com/incidents/l50d1j43zdj9>

I would recommend subscribing or watching that incident for update. Once this incident is resolved I would expect that you should then be able to use Sourcetree without this error.

Sorry again for the inconvenience here.

Cheers,

Andy

comments: author: Ai Hirama
body: ???????????????????????????

Andrew??????????????????????????????????????????????????????URL???????????????????????????????????

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


author: pig gold
body: ????????????????????????

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

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

Andrew

Thank you so match!


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

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


Tags: bitbucket-cloud

language-ja

oauth

redirect
Cannot add my account to Sourcetree
Asked by Etienne Peach:

I have previously added Sourcetree to a different PC and managed to connect my account to it and been able to view my repositories from Sourcetree. I have moved to a new PC and am trying to setup Sourcetree again, however, now when I attempt to add my account I cannot edit the host URL and no matter which options I choose, the 'OK' button is always greyed out. On the Bitbucket website I have full access to my repositories. I have also noticed that if I press on the 'Refresh OAuth Token' button I always get redirected to the Bitbucket website and am faced with an 'Invalid redirect_uri' message.

![Sourcetree.PNG](/t5/image/serverpage/image-id/56742iA621E20301DC2552/image-size/large?v=v2&px=999 "Sourcetree.PNG")

![InvalidURI.PNG](/t5/image/serverpage/image-id/56741i46287BA8D6FCDAB7/image-dimensions/520x196?v=v2 "InvalidURI.PNG")

So far I've attempted reinstalling Sourcetree to the latest version (3.1.3.3158) and rolling back to a previous version (2.6.3) but am faced with the same issues.


Answers:
author: Mikael Sandberg
body: This is a known issue and has to do with OAuth, the Bitbucket team is aware of it and are activly working to resolve it. Check <https://bitbucket.status.atlassian.com/> for more information.

comments: author: Etienne Peach
body: Thanks for the information Mikael!


author: Aleks Haecky
body: This article is 2+ years old, and the related official documentation as well.

I am having this issue as well with a new laptop.

Is this product not supported anymore?


author: camt587
body: have the same issue!


Tags: bitbucket

host

ssh
Error: cannot install sourcetree 3.1.3
Asked by Prakash Rai:

When I choose bitbucket option to install the sourcetree it gives error

**Confirm access to your account**

Invalid redirect_uri

This integration is misconfigured. Contact the vendor for assistance.

Anyone having same problem installing sourcetree?


Answers:
author: Mikael Sandberg
body: This is a known issue and has to do with OAuth, the Bitbucket team is aware of it and are actively working to resolve it. Check <https://bitbucket.status.atlassian.com/> for more information.
Reinstall sourcetree - HELP!
Asked by John Langston:

How can I get around this on the connecting to bitbucket step? I tried Chrome, this was using IE with the same result. I am using the SourceTreeSetup-3.1.2 installer. Needless to say I am extremely frustrated with this whole process. ![image.png](/t5/image/serverpage/image-id/56731i4684D8A8F1B384E5/image-size/large?v=v2&px=999 "image.png")


Answers:
author: Andy Heinzer
body: Hi John,

Sorry to hear about this problem with logging into a Bitbucket account from Sourcetree. However this is not just you that is having this problem. There is currently an outage in regards to Bitbucket Cloud's OAuth tokens are not working correctly. This is the cause of the inability to login here and in turn showing that 'Invalid redirect_uri' error message.

Atlassian has just updated our StatusPage about this incident that you can use to track this problem in <https://bitbucket.status.atlassian.com/incidents/l50d1j43zdj9>

I would recommend subscribing or watching that incident for update. Once this incident is resolved I would expect that you should then be able to use Sourcetree without this error.

In the meantime, [@Seadna Smallwood](/t5/user/viewprofilepage/user-id/1742467) posted a method to utilize SSH instead of the OAuth. Details are in <https://community.atlassian.com/t5/Sourcetree-questions/Cannot-setup-SourceTree-stuck-at-OAuth-authorization/qaq-p/1100327#U1100478> perhaps this could help as a work-around until the incident with Bitbucket has been resolved.

Sorry again for the inconvenience here.

Cheers,

Andy

comments: author: John Langston
body: I used an installer for an old version we had on our network and managed to coax it into cloning a local repository. Heavy sigh of relief.


author: Mikael Sandberg
body: This is a known issue and has to do with OAuth, the Bitbucket team is aware of it and are actively working to resolve it. Check [https://bitbucket.status.atlassian.com](https://bitbucket.status.atlassian.com/) for more information.

comments: author: John Langston
body: I'm toast.
Problem with Sourcetree
Asked by Alexandr Meskin:

Hello have some problem with registration.

Invalid redirect_uri

This integration is misconfigured. Contact the vendor for assistance.

git version 2.21.0

Soursetree just download exe file.

Open it with Chrome

try to do tips from other answers like wipe setup files. Its dont work.

Sistem Windows 10


Answers:
author: Mike Corsaro
body: Hello! This should now be solved as it was an issue in Bitbucket.

Thanks!


Tags: bitbucket

bitbucket-cloud

cloud
bitbucket???????????
Asked by E-ymgc:

sourcetree??????????????bitbucket??????????????????????????????????????????????????redirect_uri????????????????

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

<https://community.atlassian.com/t5/Tokyo/sourcetree%E3%81%AEOAuth%E8%AA%8D%E8%A8%BC%E3%81%A7-bitbucket%E3%81%B8%E3%83%AD%E3%82%B0%E3%82%A4%E3%83%B3%E3%81%8C%E3%81%A7%E3%81%8D%E3%81%AA%E3%81%84/gpm-p/942844>

? ??

* ????????: sourcetree v.3.1.2
* Windows10 Pro

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


Answers:
author: Mike Corsaro
body: Hello! Apologies for the issue, but it should now be resolved.

[You can read more about the incident here.](https://bitbucket.status.atlassian.com/incidents/l50d1j43zdj9)

comments: author: E-ymgc
body: Thanks! I could finish.
"This integration is misconfigured. Contact the vendor for assistance." error when instll SourceTree
Asked by Maggie Kautz:

Bitbucket account was created and email was verified


Answers:
author: edgariscoding
body: It's absurd that you have to sign in to Atlassian just to install the application with no offline option for the installer.


author: Andy Heinzer
body: Hi Maggie,

Sorry to hear about this problem with logging into a Bitbucket account from Sourcetree. However this is not just you that is having this problem. There is currently an outage in regards to Bitbucket Cloud's OAuth tokens are not working correctly. This is the cause of the inability to login here and in turn showing that 'Invalid redirect_uri' error message.

Atlassian has just updated our StatusPage about this incident that you can use to track this problem in <https://bitbucket.status.atlassian.com/incidents/l50d1j43zdj9>

I would recommend subscribing or watching that incident for update. Once this incident is resolved I would expect that you should then be able to use Sourcetree without this error.

Sorry again for the inconvenience here.

Cheers,

Andy

comments: author: Jesper Lund Stocholm
body: I am having the same issue. I am trying to connect to Bitbucket from Microsoft Power Automate (Flow).


author: Elayaraja Vethamurthy
body: When I try to connect from Azure Devops to Bitbucket Cloud, I'm having the same issue.


author: Jonas
body: I'm having the same issue, but from TeamCity instead.

When I try to create a now project by connecting to my Bitbucket account, I get   

> Confirm access to your account {#toc-hId--1298255629}
> -----------------------------------------------------
>
> Invalid client_id
>
> This integration is misconfigured. Contact the vendor for assistance.

comments: author: DTimberlake
body: I am having this issue, did you find a solution?


author: Jonas
body: No sorry, we just created a new project from scratch instead.


author: raghavendra reddy
body: Getting the same issue.  
Incident is in state of resolved but the issue still exists

Confirm access to your account {#toc-hId--1299860284}
-----------------------------------------------------

Invalid client_id

This integration is misconfigured. Contact the vendor for assistance.


author: balamuthia
body: I was able to correct this issue by updating to the latest version of SourceTree (3.0)


author: balamuthia
body: I'm having this issue as well with a known-good login

comments: author: balamuthia
body: Disregard, I fixed the issue by updating the app