youngmon/atlassian-qna huggingface dataset:
How do you get an export format file from Get Log or is there a better tool for a cleaner look?
Asked by Kyleigh Philbrook:

We want a simple list of date and topic..


Answers:
author: Patrik S
body: Hello [@Kyleigh Philbrook](/t5/user/viewprofilepage/user-id/4327526) ,

Thank you for reaching out to Atlassian Community.

From your description it was not clear what Get Logs you are referring about. Could you give us more context of your request and also clarify if "Get Log" is an API call or an option you see in the Bitbucket UI ?

Thank you, [@Kyleigh Philbrook](/t5/user/viewprofilepage/user-id/4327526)

Kind regards,

Patrik S.

comments: author: Kyleigh Philbrook
body: It is a command line function that is standard with Bit Bucket.


author: Patrik S
body: Hello [@Kyleigh Philbrook](/t5/user/viewprofilepage/user-id/4327526) ,

I think you might be referring to "git log" command. If that is the case, you can use the command below to export the list of commits containing just the date and commit messages :

```
git log --pretty=format:"%ad%x09%s" > destination_file.txt
```

Where :

%ad = author date  
%x09 = tab  
%s = subject

Please let me know if this is what you were looking for.

In case you are referring to a different command, could you please provide us an example of the command you are executing ?

Thank you, [@Kyleigh Philbrook](/t5/user/viewprofilepage/user-id/4327526) .

Kind regards,

Patrik S


author: Kyleigh Philbrook
body: Yes, sorry it's been a long Monday/Tuesday. It worked, thank you much! :)


Tags: bitbucket-cloud

cloud
will Repository Variables stored secured be destroy by echo?
Asked by Lars_langhans:

What I have done:

I have stored a .ssh/private-key (--- BEGIN...) into a repository variable with 'secured' marked. If it is a good idea I don't no.

Within a pipeline script I echoed such variable to a file like \`echo ${VARIABLE} \>\~/.ssh/name\`, chmod it to 600... btw: the file is 1675 bytes long, on bitbucket and local.

When I try to use \`md5sum -b \~/.ssh/name\` on such file the result is not the expected checksum, I have on my local system. I used different editors to create such variable, but the result is always the same.

But, the same procedure with the single line public key works as expected, the checksum is the same as on my local system and in pipeline script.

I'm working on Linux so line ending is always the byte 0x0a.

How can I see, the content is as expected?


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

Pipelines does not currently support line breaks in environment variables. What we suggest is to base-64 encode the private key by running:

**Linux**

```
$ base64 -w 0 < my_ssh_key
```

**Mac OS X**

```
$ base64 < my_ssh_key
```

Then copy the base64-encoded private key from the terminal, and paste it as the value for a variable.

You can then create the private key file in your build with the following command

```
(umask 077 ; echo $MY_SSH_KEY | base64 --decode > ~/.ssh/id_rsa)
```

where **MY_SSH_KEY** replace with the name of your repository variable.

We have documentation about this here:

* <https://support.atlassian.com/bitbucket-cloud/docs/variables-and-secrets/#Use-multiple-SSH-keys-in-your-pipeline>

Kind regards,  
Theodora


author: Lars_langhans
body: Thanks for the not documented feature, that carriage return 0x0a will replaced by 0x20 (space).

BTW: To see the full content of a file, I use 'od -x file', which works as expected.

Kind Regards


Tags: bitbucket-cloud

cloud
My ssh key is already in use
Asked by lukicpa:

Hi,

I wated to add new SSH key to my bitbucket accound but got the error that it's already in use "Someone has already added that SSH key."

Treid to get the info on who is using it with but didn't get the username, just info that key is already in use:

ssh -T git@bitbucket.org

authenticated via ssh key.

You can use git to connect to Bitbucket. Shell access is disabled

It would be great to know aith which user I already used this key, I created this key recently, few months ago.

Thanks in advance,

Regards, Darko


Answers:
author: lukicpa
body: My bad, I realized that I already using it for a differen account ?
Regarding Pre-Receive hook
Asked by Manish.Ahlawat:

Dear Atlassian,

I would like to add a Pre-Receive hook called as commit policy verification to link Bitbucket to our Jira ticket server but can't find it in add hook option. Can someone guide me if linking to the Jira server is done through this hook ?

Regards

Manish![hook.PNG](/t5/image/serverpage/image-id/191733i3B9002423E232064/image-size/large?v=v2&px=999 "hook.PNG")


Answers:
author: Ulrich Kuhnhardt _IzymesCo_
body: Hi Manish,

welcome to the community.

There are several hooks that would do that for out available on the [Atlassian Marketplace](https://marketplace.atlassian.com/search?category=Repository%20hooks&product=bitbucket) - you can install the app in Bitbucket and configure the added hook(s) according to your needs.

Good luck and let us know how you go.

Best, Ulrich

[Izymes](https://marketplace.atlassian.com/vendors/1210584/izymes-pty-ltd) // Eliminate boring from work


Tags: bitbucket-server
How do I add the same ssh key to 2 workspaces?
Asked by blucky:

I have access to 2 workspaces made by the same person, and I want to be able to auth with ssh into both of them, but when I try to add the ssh key to the second workspace it tells me that \`Someone has already added that SSH key.\`, can I somehow add the same key to both workspaces so that I don't have to juggle 2 keys (or even more if the person adds me to more workspaces)?


Answers:
author: Karthick S
body: Hello [@blucky](/t5/user/viewprofilepage/user-id/4861366)  

Welcome to the community!

Currently, it is not possible to use the same SSH key across multiple workspaces. We do have a feature request requesting this functionality which you can check below:

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

I hope this helps!

Kind regards,  
Karthick S

comments: author: blucky
body: that's unfortunate, are there any known workarounds for that for now except juggling multiple keys?


Tags: bitbucket-cloud

cloud
Bitbucket Migration
Asked by Marcel Kaiser:

Caused by: com.atlassian.bitbucket.plugin.bcma.httpclient.exceptions.UnexpectedStatusCodeException: Received an unexpected status code; expected \[202\], but received 400:

we have this error in the log. This prevents the migration of all reposetories

The Bitbucket server is public


Answers:
author: Caroline R
body: Hi, [@Marcel Kaiser](/t5/user/viewprofilepage/user-id/4696738), thank you for reaching out to Atlassian Community.

As we will need to know the logs to further investigate this case, I have created an internal ticket for you using the email of your community account, so you don't have to share this information here.

You should have received an email with a link to the support ticket. Just in case you haven't received it, please feel free to let me know and I can post the ticket URL here. The ticket will be visible only to you and Atlassian staff, no one else can view its contents even if they have the URL.

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

Kind regards,  
Caroline


Tags: bitbucket-server

cloud

migration-customer-care

server
"VS30063: You are not authorized to access https://api.bitbucket.org."
Asked by Judy M:

Hello!

I am trying to run my CI/CD pipelines on Azure DevOps, however when I click run I am getting the following error on the Azure DevoOps end:

Unauthorized request. Bitbucket returned the error: 'VS30063: You are not authorized to access <https://api.bitbucket.org>.'

I have tried adding a service connection from Azure DevOps. I have authorized Azure through OAuth. I tried using an App Password, but I wasn't sure where to login with the app password. I am not sure how to fix this. Has anyone encountered something like this?

Thank you!


Answers:
author: Patrik S
body: Hello [@Judy M](/t5/user/viewprofilepage/user-id/4860784) ,

Welcome to Atlassian Community!

Are you receiving the error '*VS30063: You are not authorized to access <https://api.bitbucket.org>.*' during your pipeline build, or before it even starts ?

To connect your Azure instance to Bitbucket Cloud you have the following options :

* OAuth : you will be redirected to Bitbucket website and will have to grant Azure access. The Bitbucket account you are logged in while creating the connection should be an **administrator** of the workspace.
* Basic Authentication (username and app password) : Create a service connection in Azure using your **bitbucket username** (not email address) and an [App Password](https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/) (not your account password) with the required permissions. You can try creating an App Password with full permissions and check how it goes.

Microsoft has a detailed documentation on how to configure the connection to Bitbucket Cloud, which covers both scenarios above, and you can find it in the following link :

* [https://docs.microsoft.com/en-us/azure/devops/pipelines/repos/bitbucket?view=azure-devops\&tabs=yaml](https://docs.microsoft.com/en-us/azure/devops/pipelines/repos/bitbucket?view=azure-devops&tabs=yaml)

Hope that helps! Let us know in case you run into any issues trying the suggestions above.

Thank you, [@Judy M](/t5/user/viewprofilepage/user-id/4860784) .

Kind regards,

Patrik S


Tags: api

azure

bitbucket-cloud

bitbucket-pipelines

cloud
Cannot login because Internet explorer 9 does not support querySelect (and others)
Asked by rala:

Hello,

I upgraded ST and now I have to login again.

I cannot because I cannot update Windows products such as IE (is still version 9). IE seams not to support querySelectAll in for example: [google-auth.js](https://id.atlassian.com/login/assets/javascripts/google-auth.js)

If I try to use direct login the username / pw is still wrong.

Is there a way to download the license file and import it in an other way?


Answers:
author: Ibrahim.h
body: Hello, I've got the same issue above in this machine, and I'm thinking to leave this tool then go back to portable git command line from here:

<https://git-scm.com/download/win>

Regards.
Google OAuth authentication does not work
Asked by Miroslav Kruzliak:

Hi I encounter the problem with source version 1.8.2.

When I try to login to Atlassian through the google account, I get the folllwing error:

```
Invalid CSRF token found in form body
```

I tried it also in different default browser but no luck (edge).

Thanks,

Miro


Answers:
author: Josh Miller
body: I am also having issues with the Google login, except I am not seeing this error. I get the Text Message for my 2nd-Factor, but the login page, just goes to a page can not be found page. (Windows 7)

This happens directly after update to 1.8.2 on startup.

comments: author: Josh Miller
body: A Twitter post said it was fixed.

Downloaded from main page and login worked.
SourceTree Crash on register
Asked by Ioannis Latousakis:

Until last update source tree was working fine. Now, when I start source tree it will take me to registration screen.

The install and Customer agreement are ticked, with Atlassian account remaining. Although nothing is render within the white area on the right of the check list. I tried deleting the app, download and install again, but I am again at the same place (assume the process is cached somewhere...). How to get past this screen ? Also, when I quit the app from that screen, I get an OSX crash report.

image2016-2-23 14:0:46.png

image2016-2-23 14:0:6.png  
[](https://community.atlassian.com/t5/Sourcetree-questions/SourceTree-Crash-on-register/qaq-p/20985?attachment-id=1482){#link_1169873c8e8c68}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/643/1/image2016-2-23%2014%3A0%3A46.png){#display_1169873c8e8c68_0}  
[](https://community.atlassian.com/t5/Sourcetree-questions/SourceTree-Crash-on-register/qaq-p/20985?attachment-id=1483){#link_1169873c8e8c68_0}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/643/2/image2016-2-23%2014%3A0%3A6.png){#display_1169873c8e8c68_2}


Answers:
author: Ioannis Latousakis
body: Deleting the app preferences from \~/Library/preferences has fixed the issue


Tags: bug

crash
Do I need to use the same license key (downloaded in my.atlassian.com) to all users who will install the Source Tree?
Asked by Bruno Tiago:


Answers:
author: Seth
body: It's up to you. In a corporate environment, it would certainly ease deployment, because the other option is to have each user who installs SourceTree register it themselves with unique keys.

Every SourceTree registration is free, so there isn't a financial incentive or penalty either way.


author: Bruno Tiago
body: Ok, thank you!
How to fix "Invalid CSRF token found in form body"?
Asked by Peter:

I just updated SourceTree, tried to start it but have to log in to Atlassian. Tried logging in with Google+, get "Invalid CSRF token found in form body" error. How do I fix it?


Answers:
author: Markus Bossler
body: I got the error "No CSRF token found in headers" during login via "Use an existing account" within version 1.8.2.11. And therefor the app is not starting at all - SHIT.


author: Rafael Freitas Costa
body: The update to version 1.8.2.2 resolved for me. Now i can register the SourceTree using my google+ account.

Thanks.


author: David McGarry
body: Same here, pathetic


author: Seth
body: Looks like they tried to implement fixes for these in 1.8.2.2. Anyone tried that yet?

comments: author: BagusTesa
body: nope, it didn't fixed. you could only bypass it by either refresh the page (which is internet explorer - if you're in Windows), or just close it. then after the page done, never spent too much time fiddling with it, just login and let the launcher recognize your account.


author: Rafael Freitas Costa
body: I?m having the same problem. I can?t use my Google+ account to finish instalation. I can't use SourceTree.


author: Nuno Duarte
body: I?m having the same problem after an update. The setup asks for my Atlassian user id, and i get this message "Invalid CSRF token found in form body". I cannot finish the install, so i cant use SourceTree.


author: Seth
body: Someone else asked this same question around the same time: <https://answers.atlassian.com/questions/37036728>. Sounds like an bug. You might see if you can find a report in jira.atlassian.com, and if not, file one.
Why dropped support for Mavericks?
Asked by Vedmant:

Why did you drop support for Mavericks (10.9)? I use this OS as I hate new Yosemite design, now I forced to stay with previous SourceTree version and can't update.


Answers:
author: Nic Brough -Adaptavist-
body: Probably for the usual reasons - it's quite old, there's a new version free to go to, and Apple only support it for security and printer updates.

comments: author: Vedmant
body: Mavericks is not so old, and Yosemite update is terrible, especially about design. I know a lot of people still using Mavericks and not going to update, and most of them are programmers. So when you drop support for Mavericks you drop support for a lot of SourceTree users. I'm not going to update to that terrible design either, so now I'm stuck with SourceTree 2.1.


author: Nic Brough -Adaptavist-
body: 3 years is old in computing. More to the point, it's unsupported and not the way forwards.

That's just my 2p, I don't speak for Atlassian (as for the update, I really don't see much of a problem, it's still OSX. But then, I did not choose Apple, I tend to use Linux most of the time, so I am free to set it up the way I like)


Tags: mac
SourceTree why the new update does not have dark theme?
Asked by hugomatilla:

After all the UI updates, I think that allowing to have a dark theme in the new version would be a nice and used feature. Most of development tools have this option why not SourceTree?


Answers:
author: simsketch
body: GitKraken makes a great alternative, especially on Linux, since SourceTree doesn't have a Linux client as far as I know.  

<https://www.gitkraken.com/>
Getting some output for everything I try to do and nothing works. What does this output mean and how do I fix it?
Asked by Michael Agreda:

So I'm getting this output git -c diff.mnemonicprefix=false -c core.quotepath=false fetch origin in sourcetree for when i try to clone a repo, when i try to push, when i try to pull, when i try to fetch and I have no idea what it means or how i can fix it. I'm not even sure what other info to tell you to try to help. I've been stuck on this for like 3 days now so any help would be amazing. One thing to add is that i got this computer from someone who left a few weeks ago and the pushes look like they end when he left when i look at he panel showing what everyone has pushed. So that is really messed up and I'm guessing related to my other problems.


Answers:
author: Seth
body: That output is just showing the command that SourceTree is running. It can be abbreviated to "git fetch".

Is there any other output? Does the command complete successfully? There is an option in SourceTree to always show output, so maybe your predecessor had that option turned on.

comments: author: Michael Agreda
body: There is no other output and the command never finishes for anything. It just keeps running forever. I selected show full output so I could see why it was getting stuck forever but i guess if that output means it is running then it's not very helpful ![sad](/html/@C495B4504065515364EB1894F812B34C/images/emoticons/sad.png "sad"). Any ideas why it would be running forever? Spent 30 minutes doing a fetch and an hour doing a push that usually takes seconds.


author: Seth
body: Hard to be sure with no other output. If you open the terminal and run a git fetch command, what happens?


author: Michael Agreda
body: Sorry, I haven't used the terminal before. How do i run a git fetch command?


author: Michael Agreda
body: I think i managed to figure out the git fetch command if it is just "get fetch \<url for the repo\>".

That got me this output

remote: Counting objects: 157, done.  
remote: Compressing objects: 100% (95/95), done.  
a 61)  
Receiving objects: 100% (157/157), 30.52 KiB \| 0 bytes/s, done.  
Resolving deltas: 100% (88/88), completed with 19 local objects.  
From [\<](https://cvp.git.beanstalkapp.com/simlearnglobal)url for repo was here\>  
\* branch HEAD -\> FETCH_HEAD


author: Michael Agreda
body: oh meant to type git up there in that fetch command


author: Seth
body: Yeah, that's it. Looks like command line works fine, so may be a SourceTree bug. Try one more time in the terminal, but use "git -c diff.mnemonicprefix=false -c core.quotepath=false fetch origin"


Tags: clone

fetch

pull-request

push
The deleted file is shown in the staging area
Asked by Hui Zhao:

I have a deleted file which is not existing in the physical drive. Why it always displays in the staging area?

Capture.PNG

I used the different command such as

```
git rm
```

But it is not working. I don't want this file. If I click discard it, it comes back.  
[](https://community.atlassian.com/t5/Sourcetree-questions/The-deleted-file-is-shown-in-the-staging-area/qaq-p/265190?attachment-id=4188){#link_116987dea36f5b}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/8422/1/Capture.PNG){#display_116987dea36f5b_0}


Answers:
author: Michael Hawkins
body: The change (deleting the file) is in staging until you commit the change and finalize the action.
New SourceTree update stops working after right-click and merge
Asked by Kevin H:

After using the right-click context menu on branches, after canceling or doing an action, the whole UI becomes unclickable and the mac "error" sound rings with each attempt.


Answers:
author: Kevin H
body: 2.2.1 and 2.2.2's changelog say the "lock up after merging" issue is resolved. Let's hope!


author: Kevin H
body: We have to wait for them to fix it. In the mean time to make the UI clickable again you can close and reopen the app.


author: revfactory
body: me too.

How do i fix it?


author: dustin_graham
body: I'm having the same issue. I've been using the new update for a few days without issue, but this morning the UI becomes unclickable shortly after I commit any code.
"Reset master this commit" is not working
Asked by Rayn Kim:

I tried to "Reset master this commit" through right-click menu.

When trying this, I received popup "Are you sure want to move the branch pointer? \~\~\~"

And I click "OK" button. then I received message "Warning: destructive operation\~\~". annd I click "OK" button.

But SourceTree return me to first popup "Are you sure want to move the branch pointer? \~\~\~"

Screen Shot 2016-02-19 at 3.08.54 PM.pngScreen Shot 2016-02-19 at 3.09.00 PM.png

Screen Shot 2016-02-19 at 3.09.04 PM.png

[](https://community.atlassian.com/t5/Sourcetree-questions/quot-Reset-master-this-commit-quot-is-not-working/qaq-p/238397?attachment-id=2453){#link_11734402f5841f}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/6938/1/Screen%20Shot%202016-02-19%20at%203.08.54%20PM.png){#display_11734402f5841f_0}  
[](https://community.atlassian.com/t5/Sourcetree-questions/quot-Reset-master-this-commit-quot-is-not-working/qaq-p/238397?attachment-id=2454){#link_11734402f5841f_0}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/6938/2/Screen%20Shot%202016-02-19%20at%203.09.04%20PM.png){#display_11734402f5841f_2}  
[](https://community.atlassian.com/t5/Sourcetree-questions/quot-Reset-master-this-commit-quot-is-not-working/qaq-p/238397?attachment-id=2455){#link_11734402f5841f_1}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/6938/3/Screen%20Shot%202016-02-19%20at%203.09.00%20PM.png){#display_11734402f5841f_4}


Answers:
author: Alfredo Rizzi
body: Same here, any news?


Tags: reset
Can I deactivate switching to file status in SourceTree 1.8?
Asked by Dennis Reil:

It's really annoying that SourceTree now switches to file status each time there is a refresh or slight change. I normally go through all the changes in a merge in the Log/History window, but each time, I close the external diff tool, sourcetree refreshes and switches to file status.


Answers:
author: Peter Halverson
body: I came here with the exact same question. What possible rationale would explain this decision?
SourceTree git flow version tag prefix default
Asked by Julien_Gibson:

Can anyone tell me if there is a way to set the default version tag prefix to something other than blank when initialising git flow in SourceTree?

Thanks

Julien


Answers:
author: Tim Grannen
body: Also, is there a way to set ALL of the defaults for git flow? Not just the branching names, but also enabling/disabling the delete branch on finish.
Git Flow Initialize Fails
Asked by Andrew Magill:

I am attempting to initialize Git Flow but the operation fails showing simply this message :

sh.exe C:\\Users\\amagill\\AppData\\Local\\Atlassian\\SourceTree\\gitflow_local\\gitflow\\git-flow init -d  
Completed with errors, see above.

<br />

It should be noted that when Sorucetree loads, I see this error :

<br />

'ssh-agent' failed with code -1 : System.NullReferenceException Object .eference not set to an instance of an object. 0  

Both messages refer to ssh, but I have no clue how to resolve or troubleshoot further. Any help would be appreciated!.


Answers:
author: Andrew Magill
body: I should add that all options are disabled when going to Repository \> Git Flow from the top menu. And that is the meat of it. I want to be able to start a new hotfix branch. Also, I receive that same NullReferenceException message when going to Tools \> Launch SSH Agent.


Tags: git

git-flow

ssh
I upgraded SourceTree To Version 1.8.1.0 and now crashes on start! Any ideas to fix this problem?
Asked by Nelson Rodriguez:

250  
sourcetree.log  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/12487/1/sourcetree.log){#display_116988773ac7da_0}


Answers:
author: sreekumar_menon
body: May users in this forum has reported issues with 1.8.1 ,it is better to downgrade to previous verision until they have been fixed.