youngmon/atlassian-qna huggingface dataset:
Pull request: accept single changes
Asked by JochenHerrmann:

I wonder if this feature is possible in my bitbucket:

I would like to accept a single change and mark is as "accepted"

So when I review this file after a rework again I would quickly notice that this change has alredy been reviewed and accepted.

This would save me lot of time.

![bitbucket_single_check.png](https://community.atlassian.com/t5/image/serverpage/image-id/221907iD5B5DFDF3C394456/image-size/large?v=v2&px=999 "bitbucket_single_check.png")

Going further it would be great to hide all accepted points, so you would only see your real issues.

Does anybody knows, if there exist such a functionality?

Bye Jochen


Answers:
author: Aron Gombas _Midori_
body: If you can invert your thinking and mark what is not accepted, then you can actually add little task while reviewing the pull request:

<https://confluence.atlassian.com/bitbucketserver/commenting-on-a-pull-request-1027119882.html>

For example, if you see a change that you like, don't do anything. If you see a change that you don't like, add a little task. You will later be able to mark the problem resolved. Bitbucket shows you non-reviewed files in bold, reviewed-but-changed-since-the-last-review files in bold, files-with-existing-tasks with a little overlay icon, etc.


Tags: bitbucket-cloud

cloud

pull-request
Deploying to DigitalOcean Space
Asked by Thanapong Yingyong:

Hi, I would like to ask about the bitbucket pipeline that takes files into DigitalOcean Spaces. I tried to use it <https://bitbucket.org/atlassian/aws-s3-deploy> but got an error and it doesn't work. Is there any way?  

thank you


Answers:
author: Igor Stoyanov
body: Hi [@Thanapong Yingyong](/t5/user/viewprofilepage/user-id/5059651) . Thanks for your question.

Unfortunately, we don't have any pipe that will deploy to DigitalOcean, but you may try [this guide](https://medium.com/@barfiagyenim/deploy-your-application-to-digital-ocean-using-docker-and-bitbucket-pipelines-cf4eb8eaaa0d)

Regards, Igor


Tags: bitbucket-cloud

cloud
Problem: "Someone has already added that key as an access key to a repository."
Asked by goran:

Hi,

I wanted to add my public ssh key to the repository and I am getting this error.

Could You please help me.

Kind regards.


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

An SSH key can be added as an Access key to a repository from the **Repository settings \> Access keys** on Bitbucket website. You need to have admin permissions on a repo in order to be able to see the **Repository settings** option.

A certain SSH key can be added as an Access key to multiple repositories, however, it cannot be added as an SSH key to an account or workspace at the same time.

If you get this error when you try to add the key to a repository's Access keys, then this message would show only if you try to add an Access key that already exists for that same repo. There shouldn't be any issues adding it to another repo where this specific key is not added. If you get this error while adding the key to a repo's Access keys, please check if this specific key already exists in the repo.

If you are trying to add a key (that is already an Access key) to your account's SSH keys instead, via <https://bitbucket.org/account/settings/ssh-keys/>, or to a workspace's SSH keys, this is something we do not allow. You will need to either generate a new SSH key pair, or remove the Access key from the repo in order to add it to your account/workspace.

If you're still having issues, please share some more details on what you are trying to do so we can further assist you.

Kind regards,  
Theodora


author: Nic Brough -Adaptavist-
body: There's no easy way to work this out because the keys that belong to other accounts should not be shared.

If you shared the key with someone, you should know who. If you were given the key by someone, then you'll need to ask them.

If you have no luck chasing it down, you can raise a support request with Atlassian, and they can search out the key for you and hence identify the account you shared it with.

If you don't want to spend ages chasing down the share, then you can (and should) create a new key for your account and use that instead.


Tags: bitbucket-cloud

cloud
how to save artifacts after builds in bitbucket ?
Asked by Neehar Pavan Chaluvadi:

I need help saving the artifacts using the bitbucket repository and saving it downloads.

How to write the code for it?


Answers:
author: Patrik S
body: Hello [@Neehar Pavan Chaluvadi](/t5/user/viewprofilepage/user-id/5059343) ,

Welcome to Atlassian Community.

In order to generate artifacts in your pipeline build, you will need to add an **artifacts**section to your build step to define the name/patterns of files you want to be included, as in the example below :

```
pipelines:
  default:
    - step:
        name: Build and test
        script:
          - npm install
          - npm test
          - npm run build
        artifacts: # defining the artifacts to be passed to each future step.
          - dist/**
          - reports/*.txt
```

The artifacts will be available for future steps in the same build. Artifacts are **stored for 14 days** following the execution of the step that produced them, and during this period you can manually download them by going to your build step and :

1. Select the **Artifact** tab of the pipeline result view

2. Click the download icon

After 14 days, the artifacts are expired. For more details please refer to [Use artifacts in steps](https://support.atlassian.com/bitbucket-cloud/docs/use-artifacts-in-steps/)

In case you also want to upload the files generated in your build to the Downloads section of your repository, you can make use of the Bitbucket API. You would have to execute the API call as part of your build script, as in the following example :

```
curl -s -u USERNAME:APP_PASSWORD -X POST https://api.bitbucket.org/2.0/repositories/<WORKSPACE>/<REPOSITORY>/downloads -F files=@hello.txt
```

This would upload a file named **hello.txt** to your repository's Downloads section. For more examples of this specific API endpoint, you're also welcome to check [Upload a download artifact.](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-downloads/#api-repositories-workspace-repo-slug-downloads-post)

Hope that helps! Let me know in case you have any questions.

Thank you, [@Neehar Pavan Chaluvadi](/t5/user/viewprofilepage/user-id/5059343) !

Kind regards,

Patrik S

comments: author: Patrik S
body: Hey [@Neehar Pavan Chaluvadi](/t5/user/viewprofilepage/user-id/5059343) ,

We also have this step-by-step tutorial on how to deploy to Bitbucket Downloads using your pipeline build :

* <https://support.atlassian.com/bitbucket-cloud/docs/deploy-build-artifacts-to-bitbucket-downloads/>

Kind regards,

Patrik S


author: Pramodh M
body: Hi [@Neehar Pavan Chaluvadi](/t5/user/viewprofilepage/user-id/5059343)

Welcome to the Community!!

For an example, refer here --\> <https://support.atlassian.com/bitbucket-cloud/docs/use-artifacts-in-steps>

Thanks,  
Pramodh


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

download

file
Code Changes Appear in Pull Request
Asked by Andrew Liew:

Hi,

I have a scenario where the first branch is the master branch as the source of truth, dev branch as integration stage and feature branch as development stage.

There are ongoing development, integration and release during the software lifecycle. The latest code exists in feature, and later moves to dev and subsequently to master.

new feature\<--master

feature---\>dev

feature--\>master

After I created a feature branch from master branch, in this new feature branch, there is a list of changes (grey out) and one commit in bold (without grey out) appearing from feature to dev branch. There is no code change done added to this feature branch.

What does this mean?   

Is the list of code changes to be merged into dev branch?

![BitbucketFeature-master.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/221848iCD12936DEFBBEA15/image-size/large?v=v2&px=999 "BitbucketFeature-master.JPG")  

Thanks,

Andrew


Answers:
author: Ben
body: Hey Andrew,

The reason you may be seeing a difference in the PR screen is due to a change in how we calculate diffs - this is detailed in the following article:  
<https://bitbucket.org/blog/improving-performance-on-complex-diffs>

**The older method** for calculating diffs compared the tips of the source and destination along with the commit where the two branches diverged. The resultant diff produced was an outcome of how the diff will look if the two branches were merged. This was also called as a Preview Merge diff for the same reason. However, we had to calculate the merge at each commit separately and this became a very expensive process leading to slow down of diff in complex PRs.

**The newer method** for calculating diffs only compares two commits instead of the three way diff we used earlier. We compare the **tip of the source branch to the merge-base** of the two branches. The outcome is a diff that shows how the source branch has changed since it branched off from the destination branch.

The screenshot you have shown me shows diff because the branch is 128 commits behind the dev branch.  
The way to get rid of the diff (as you say the branches are the same) is to introduce the changes from the destination into the source branch. When you click on **Sync Now**, it does the same task - a merge from the destination branch onto the source branch.

Hope this makes sense.

Cheers!


Tags: bitbucket-cloud

cloud
Cannot push to repository
Asked by ranne85:

Hi,

I'm trying to push to my bitbucket reposytory and i'm getting the attached fatal error.

Can you please explain this error?

Thanks

![SourceTree error.JPG](/t5/image/serverpage/image-id/11357i7F01A5BA3AFF3831/image-size/large?v=v2&px=999 "SourceTree error.JPG")


Answers:
author: Edwin Kyalangalilwa
body: Hi Ran,

Instead you should push to master without the URL

```
git push origin master
```
Install to custom folder
Asked by Anders Jensen:

I want to install SourceTree somewhere else than under appdata\\local. We have some users who work on Citrix virtual machines and due to the VM configuration, I cannot install it in the default location. I found the same question from a user in 2013 and there was a link to a new installer that supposedly would let users install it in a different folder. I don't see that option in v2.1.11 or v2.3.5.


Answers:
author: David Chwalisz
body: Our IT department just rolled out blocking executions from AppData. Without this alternative, we cannot use Sourcetree.

comments: author: Mikael Sandberg
body: [@David Chwalisz](/t5/user/viewprofilepage/user-id/1396919) There is now a [Sourcetree Enterprise](https://www.sourcetreeapp.com/enterprise) version that allows you to specify the install path.


author: Anders Jensen
body: Thank you!!


author: David Chwalisz
body: [@Mikael Sandberg](/t5/user/viewprofilepage/user-id/853579) We did find that today 20 mins before you responded. thanks!


author: Mikael Sandberg
body: Currently it is not possible to select a different install folder. Atlassian is working on a Sourcetree for Windows Enterprise Support installer that would allow you to select a different install folder, but at the moment they have not said when it will be available. If you want to find out more about it, join the [Sourcetree beta program](https://groups.google.com/d/forum/atlassian-sourcetree-beta#)

comments: author: Anders Jensen
body: Ok. Thank you for your prompt feedback.
Why can't i see the security tab in repository Settings ?
Asked by NelsoNM:

Hi, i want to set up GPG signing in Sourcetree and it seems it needs to be set up in the security tab which i don't see.

I'm on Windows, Sourcetree version 2.3.5.0


Answers:
author: Ana Retamal
body: Hi Nelson! Once you open Sourcetree and navigate to the repository, click on **Settings (gear icon)** and you'll get a menu window where one of the options is **Security**. Can you see it now?

If you can't please send us a screenshot so we can continue helping you.

Best regards,

Ana

comments: author: Marius G
body: Hello,

i have the same problem. Here is a screenshot from [your tutorial](https://confluence.atlassian.com/sourcetreekb/files/765397791/765397777/2/1436937373724/Screen+Shot+2015-07-15+at+2.49.57+pm.png) and here is a [screenshot from my pc](https://i.imgur.com/ghg5NTb.png).

\>Can you see it now?

No.


Tags: gpg

windows
Long filenames can't be staged with error 'did not match any files'
Asked by Eric Wilson:

In the config file, my longpaths variable is set to true which is the main suggestion for solving filename too long issues. all the files are over 260 characters if using the full local path, but the path used by git is only about 200 characters.

for example, the below path is 204 characters, but can't be staged.

fatal: pathspec 'Networking Interface/Assets/MixedRealityToolkit-Unity-master/MixedRealityToolkit-Unity-master/Assets/HoloToolkit/UX/Resources/Models/Cursor/Cursor_move/CursorRingAnim/Cursor_Ring_Drag_From_Hold.anim.meta' did not match any files

the error does say that it did not match any files, so is it possible that my issue is unrelated to filename length even though there are several different problem files, all of which have 260+ characters?


Answers:
author: Mikael Sandberg
body: Do you get the error from within Sourcetree? Have you tried to stage the file from the command line? I found this issue, [SRCTREEWIN-1781](https://jira.atlassian.com/browse/SRCTREEWIN-1781), when doing a quick search on the error.

comments: author: Eric Wilson
body: ok, I had seen that post but wasn't familiar with the command line git, and hadn't tried the command listed there. It seems to work now that I've tried the command line but only through there. thanks!


author: Gabriel Lee
body: I would recommend you to use LongPathTool to resolve issues regarding filename being too long. It worked for me.


author: Frank Gleg
body: The best suggestion that I can provide for this type of issues is LongPathTool. Best of luck.


author: Juan Miller
body: I suggest you try Long path tool is the very good program for easily delete, copy \& rename long path files, error, unlock solution.  
Try it and solve your problem.


author: Kurt Jackson
body: I would like to suggest you, try "Long Path Tool" program to resolve this issue. This tool is very helpful to resolve the issue.


Tags: commit

file

upload
How to uninstall Embedded Git ?
Asked by ????:

i installed Embedded Git.

after that Git for Windows .

so i switched to System Git.

i want uninstalled Embedded Git.

how to do ?

OS: Windows10

Sourcetree:Version:2.3.5.0


Answers:
author: Ana Retamal
body: Hi! We don't provide a mechanism to do it but you can just :

1. - Shut down Sourcetree.
2. - Delete the directory,
   * On Windows: %localappdata%/Atlassian/Sourcetree/git_local when Sourcetree is shutdown
   * On Mac: /Applications/SourceTree.app/Contents/Resources/git_local/bin
3. Restart Sourcetree.

Hope that helps!

Ana

comments: author: Kunal Pradhan
body: Hi Ana,

I keep getting the below error while initializing git-flow on my SourceTree.

sh.exe C:\\Users\\kpradhan\\AppData\\Local\\Atlassian\\SourceTree\\gitflow_local\\gitflow\\git-flow init -d  
0 \[main\] sh 9008 fork: child 11952 - died waiting for dll loading, errno 11  
C:\\Users\\kpradhan\\AppData\\Local\\Atlassian\\SourceTree\\gitflow_local\\gitflow\\git-flow: fork: retry: Resource temporarily unavailable

So, I figured using System Git instead of embedded git. However, it somehow doesn't save the option. I tried deleting the git_local folder, it worked as well. However, still gives me this error while initializing git flow.

Can you please help


author: Kunal Pradhan
body: And also giving the same error while opening up the terminal as well.


Tags: git

windows
Can't install SourceTree 2.3.5.0 on Windows 10 machine
Asked by Bill Duncan:

Getting an error message "Unable to write to c:\\ProgramData\\\<User\>\\SquirrelTemp - IT policies may be restricting access to this folder". I am on a home WiFi and need this to do a Pluralsight course with. I changed IE's security setting to enable "Access data across domains". I don't use it but IE version is 11.125.16299.0.

Thanx in advance


Answers:
author: Tristan Gillon
body: This issue still exists in version 3.4.13. The installer complains it cannot write to a folder in PrograData (which I don't want to). The folder doesn't exist, so I create it. Then it says it can't write to the new folder\\SquirrelTemp\\. So I create that. Then it says "Failed to extract installer".

Why is there no option to choose where to install, you know, like other programs do?

comments: author: MinibusDev
body: Had the same issue - putting the install executable in OneDrive and running it from there worked for me.


author: Marianne
body: Got the same issue installing SourceTree version 3.3.6 on Windows 10. The solution for me was to move the installation file to another folder. The browser put it in its default downloading path, which is C:\\Users\\Username\\Favorites\\Downloads, and I moved it to D:\\Foldername. I hope it will help if someone will encounter the same issue in the future.


author: Ana Retamal
body: Hi Bill, this seems to be a permissions issue, can you double-check that there is no problem accessing the path described by the error under your user account?

Can you also confirm that you are not using a firewall or proxy?

Best regards,

Ana


Tags: windows
Permission Denied error
Asked by George Whittaker:

Moving off a feature branch and then back onto it is giving me a permission denied error:

error: cannot stat '*newFileDirectory'*: Permission denied

<br />

This error is repeated on any new file I added to the project whilst I was working on that branch.

I am unable to edit the permissions on this file and when I try to open in explorer I get an 'Access is Denied' error.

If i delete and clone the repo I get the same issue again.

Any help appreciated!


Answers:
author: Ana Retamal
body: Hi George, are you using Windows? Close any programs you might have open (such as Sourcetree, Visual Studio, explorer,editor, command prompt...), reopen Sourcetree and try again. If it doesn't work, reboot the machine.

If after trying this you're still getting the same error, let us know the following:

- Are you using Windows or Mac?

- Are you getting the same error when using the command line?

- Which Sourcetree version do you have?

Best regards,

Ana

comments: author: George Whittaker
body: I have tried all the above and still doesn't fix it.

-I am on windows 10.

-The error is happening on the command line as well as if i just try to open the problematic files in file explorer.

- I have tried with various versions of sourcetree including the latest and I think version 1.1

Thanks

George


author: Sergey Roubuts
body: I have the same issue.
Sourcetree sign a commit on Windows
Asked by LKenselaar:

It is possible on the mac version to sign a commit using your gpg key.

But it isnt available on windows. Will this ever be added to the Windows version?

Thanks in advance


Answers:
author: Mike Corsaro
body: While it's [not recommended](http://git.661346.n2.nabble.com/GPG-signing-for-git-commit-td2582986.html)that you auto-sign your commits, there is a work-around that you may use on Sourcetree for Windows:

Setup git config to use your GPG key:

    git config --global user.signingkey YOUR-KEY-GOES-HERE

Then, set git to auto-sign your commits:

    git config --global commit.gpgsign true


author: minnsey
body: While we do have a longer term aim to get to feature parity across the two platforms I'm afraid at the moment adding that functionality is not on our roadmap.


Tags: commit

gpg

windows
????????????????????
Asked by Takashi Yoshitake:

SourceTreeSetup-2.3.5.0.exe????????????????????????Atlassian??????????????

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

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

????????????????????????URL????????????????????????????????????????????????

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

????????????????????????????????Q?A???????????SourceTree????????IE??????????????????????????????

OS?windows10 32bit

????????IE FireFox Chrome


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

Sourcetree????????????????????????????Sourcetree?????[SRCTREEWIN-7244 Can't install SourceTree](https://jira.atlassian.com/browse/SRCTREEWIN-7244)??????????Yoshitake??????????????????????

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

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

1. ??????? ????? (????????????????) -\> ?Advanced(????)\] ??????
2. ?Do not save encrypted pages to disk (????????????????????) ??????

??????????????????[Installation of SourceTree cannot be completed because of problem while Log in with Atlassian Id](https://community.atlassian.com/t5/Sourcetree-questions/Installation-of-SourceTree-cannot-be-completed-because-of/qaq-p/621375#M17419)??????????????2.3.5.0???????????????????????????????????????????????

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


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

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

???????????????????????????????????????[Can't install SourceTree](https://jira.atlassian.com/browse/SRCTREEWIN-7244?_ga=2.29948671.1713480481.1513814969-1520594938.1513308356)??????????????????????????????????

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

* <https://id.atlassian.com/> ??????????????
* ????????????U[pdate the "Oops, you've made a malformed request." error message to a more adequate and useful one.](https://jira.atlassian.com/browse/ID-6249)??????????????????  
  1. ??????????????????  
  2. ?????????????

??????????????????[??????](https://getsupport.atlassian.com/servicedesk/customer/portal/6/create/198)??????????????????????????


author: Takashi Yoshitake
body: ?????????? ???

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

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

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

?????????SourceTreeSetup-2.3.5.0?????????????????????????

SourceTreeSetup_1.9.9.20?????????????????????????????SourceTreeSetup-2.3.5.0?????????????????????????????

????2??????????????????

1.????????????????????

2.?????????????????

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


Tags: language-ja
Source tree login issue with cloning repo bitbucket
Asked by Noahhuynh:

Hi I am new to this but I am trying to clone a repo from bitbucket with sourcetree so I clicked on clone and a password prompt shows up. I enter the correct password to my account on bitbucket but when I submit it keeps prompting me to enter the required password for my account on bitbucket. I don't understand why its not working because the password is correct and I use that same password to login from the browser instead of source tree and it works.


Answers:
author: Ana Retamal
body: Hi Noah! I'd try deleting the credentials entered in the Windows Git Credential Manager or the Mac Keychain, in case there are some wrong credentials creating a conflict.

If that doesn't work, you can [Wipe Sourcetree preferences](https://confluence.atlassian.com/sourcetreekb/how-to-wipe-sourcetree-preferences-412484640.html).

If you're still having issues with your credentials, let us know if you're using Windows or Mac, which Sourcetree version are you using, and send us a screenshot of what happens.

Best regards,

Ana