youngmon/atlassian-qna huggingface dataset:
MQTT connection in pipelines
Asked by MarcGuerreroMolero:

I want to test the MQTT connections of my code using pipelines. The main problem is that every time I try to make some connection it is refused. I also tried a socket test python program and happens the same. How can I make ports available to make these connections possible?

Thank you in advance.


Answers:
author: Caroline R
body: Hi, [@MarcGuerreroMolero](/t5/user/viewprofilepage/user-id/4605340)! Welcome to the community!

Could you please share with us how you are making the connection? Also, have you whitelisted the Pipeline IPs?

* [Pipeline IP list](https://support.atlassian.com/bitbucket-cloud/docs/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall/#Valid-IP-addresses-for-Bitbucket-Pipelines-build-environments)

* [Atlassian IP ranges](https://ip-ranges.atlassian.com/)

Looking forward to hearing from you.

Kind regards,  
Caroline


Tags: bitbucket-pipelines
Needs my review
Asked by annette_varndell:

Selecting "Needs my review" is not showing all the Pull Requests That I need to review.


Answers:
author: ABEL MASILA
body: You can check if you have been added as a Reviewer for the pull requests. If not, you can create a reviewer group and ask your team to use it or just add your account as a reviewer. More info on this can be found here:

* [Reviewer Groups](https://confluence.atlassian.com/bitbucketserver/reviewer-groups-for-pull-requests-1064084872.html)
* [PR Reviews](https://confluence.atlassian.com/bitbucketserver/reviewing-a-pull-request-808488540.html)

comments: author: annette_varndell
body: I am the reviewer.


author: Michal Glowacki
body: Hi, we experience exactly the same issues. We have multiple repositiories that even developers are assigned to be reviewers, "needs my review" filter does not show them. Why it does not work as should ?


Tags: bitbucket-cloud

cloud
Bitbucket repo creation using REST API
Asked by Silambarasan:

I tried to create repo as per the documentation. I have ended up with below error. Please help me to give some insights on how to clear this issue ?

**Documentation:**

<https://docs.atlassian.com/bitbucket-server/rest/6.10.0/bitbucket-rest.html>

Refer doc Section: /rest/api/1.0/projects/{projectKey}/repos

**Error:**

*Parameter conditions "create" not met for actual request parameters:*

**Input request :**

curl -X POST \\  
<https://bitbucket.myOrg.com/projects/myProject/repos/> \\  
-H 'Authorization: Bearer \*\*\*\*\*\*\*NzgxOp6QjEOo8QaaTQSf\*\*\*\*\*\*\*' \\  
-H 'Cache-Control: no-cache' \\  
-H 'Content-Type: application/json' \\  
-d '{  
"name" : "some-repo",  
"scmId": "git",  
"forkable": true

}'


Answers:
author: Ulrich Kuhnhardt _IzymesCo_
body: you'll have to use this url

```
{BASE_URL}/rest/api/1.0/projects/{projectKey}/repos
```

Hope that helps.


Tags: api

bitbucket-server

server
How can i edit issue key in bitbucket after moving them from one project to another project in JIRA
Asked by karim -Atlassway-:

Hi Team ,

I have many issues in jira that moved from one project to another , these ticket are used in Bitbucket like name of commit and so oin .

I would like to know if there are a way to rename these tickets in bitbucket with the new key in Jira automatically .

Thank you for your help.

Regards

Karim


Answers:
author: Mikael Sandberg
body: It is not possible to change the references to Jira issues in Bitbucket, unless the pull request is open and you change the description field, or comments. Note that Jira keeps track of the old and the new issue key, so even though Bitbucket is referencing the old key, if you click on it you will be forwarded to the new key.


Tags: bitbucket-cloud

cloud
Merge back accounts
Asked by Martin Molzer:

Was given a link on slack, where I joined with my academic email, which prompted me to sign in with slack, which I did. This created this account I'm currently posting from.

Problem is, that this mistakenly claimed an email from my primary account, which is now separate and I would like to join them back together again. Is there any possibility to do that?


Answers:
author: Caroline R
body: Hi, [@Martin Molzer](/t5/user/viewprofilepage/user-id/4604991)! Welcome to the community!

Yes, it's possible. We currently don't have a process to exactly merge accounts, but we do have a workaround for that. This is what we could do:

* As the second account that was created by mistake is empty (it doesn't own any repositories), we can remove this account from Bitbucket;

* After that, you will be able to [add this email to the original account as an alias](https://support.atlassian.com/bitbucket-cloud/docs/set-email-aliases) again.

This way, both emails will be under the same Bitbucket account. However, you will still only be able to log in using the primary email.

Please let me know if you would like to proceed with that and feel free to share any additional questions or concerns regarding this case.

Kind regards,  
Caroline

comments: author: Martin Molzer
body: Thanks for reaching out.

The second account is empty in itself but (1) has been added to a private repository. (2) as far as I am aware has an academic plan applied.

When removing this account, I'd guess the repository access won't carry over? If this is the case, I would have to ask my supervisor to add the other account before we can proceed.

With regards to the academic plan, to my understanding this will be applied to the other account once I re-add the email and verify it?


author: Caroline R
body: Hi, [@Martin Molzer](/t5/user/viewprofilepage/user-id/4604991)!

Thanks for getting back to me. Indeed, you will need to contact the admin of the repository you were invited to and ask them to invite you again, using the correct email.   

Regarding the academic plan, you don't need to worry as your old account is already under this plan, so nothing will change.

Please let me know if you have any other questions so I can help you with them.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
Sourcetree commit
Asked by Ned CS:

Why if I click on the button Commit on the top bar in the commit window I cannot select any files under Working Copy changes..

but if I right-click on the files and then from the submenu click on Commit the file are correctly selected...

is this a bug or it's a feature ? Is there a preferences to setup this? I'd like to click on the big button COMMIT Instead of selecting the files and the right click and then Commit..


Answers:
author: KieranA
body: Hi Ned,

You have to stage files before you can select them, that's why they're not selectable. This is a basic Git concept (check out the 'git add' section in Atlassian's docs: <https://www.atlassian.com/git/tutorial/git-basics#!add>).

It sounds like you want a more basic workflow instead of having to stage files. If this is the case you can go into your SourceTree preferences and turn off 'Use the staging area' which will always allow you to select entire files rather than having to stage them.

Hope that helps


author: Ned CS
body: ok, I see. Thanks for the explanation and the help


author: Ned CS
body: no no, I don't need to add the file, I'm talking about file that are ALREADY under GIT.

But I see that if I disable the 'Use the staging area' it works.. Thanks

comments: author: KieranA
body: Even if the file is already in Git, you have to stage it. You can't commit the file if it isn't staged, this isn't the way Git works. Disabling the staging area is just providing Git explicit options to say "commit these files". It's important to understand this as it's a fundamental part of Git. Take a look at the tutorial I posted above to understand the staging area.
How to "force" ignore a file?
Asked by marcoslhc:

I have this .gitignore:

```
django-countries/*data.dbmyproject/settings.pymyproject/wsgi.py*.pyc
```

I need to ignore myproject/settings.py because they're different in the development environment and the production environment but git still tracks the file. I tried to ignore it in sourcetree but the option appears inactive. Any Ideas?


Answers:
author: marcoslhc
body: I found the answer here <http://stackoverflow.com/questions/1139762/gitignore-file-not-ignoring>

Basically clean the index and cache, then ignore the file


author: MB
body: You should check if your .gitignore file is being read at all or not. It could be that there exists a global gitignore or a custom-specified git ignore file, specified on the command line, when the git runs. However, try adding a line like:

```
myproject/settings2.py
```

to your .gitignore and of course create that file, just to make sure that .gitignore file is being respected.

If everything is ok with your .gitignore file, than it might be the case where the git has already tracked/staged/pushed some previous versions of that file, so you might want to remove it from the remote git repository too. For that purpose, try using:

```
git rm myproject/settings.py
```

(don't forget to backup your file first, since that command will remove the local copy of the file also). After that, push your changes and just create a new file myproject/settings.py and it shouldn't be tracked any more (according to .gitignore).


Tags: git
External diff / merge not working
Asked by Matt Roberts:

Hi,

I'm using windows and I can't get the exteranl diff / merge tool to work. I'm trying to use beyond compare. I've selected beyond compare as the external tool to use, and nothing happens when I launch an external merge / diff.

I then tried setting it manually - I chose custom and entereed these options:

DIFF:

Diff Command: "C:/Program Files (x86)/Beyond Compare 3/bcomp.exe"

Arguments: "$LOCAL" "$REMOTE"

MERGE:

Diff Command: "C:/Program Files (x86)/Beyond Compare 3/bcomp.exe"

"$LOCAL" "$REMOTE" "$BASE" "$MERGED"

These are the same as set in my git config (from git config -l). I can run "git mergetool" from the command line and this works, but nothing happens in source tree.

Thanks for any help


Answers:
author: Ryan Alberts
body: This may or may not help you. The following works for me in SourceTree (that is what you are using - right?):

FYI - I do not have any quotes around any input. I configured it from the SourceTree tool - not from the git config:

External Diff Tool: "Custom"

Diff Command: C:\\Program Files (x86)\\Beyond Compare 3\\BComp.exe

Arguments: $LOCAL $REMOTE

Hope that helps!


author: Vasyl
body: I have the same issue.

sorce-tree-external-diff-cfg.png

Diff Command: C:\\Data\\Development\\diffdoc.bat

Arguments: $LOCAL $BASE

=diffdoc.bat content is======================

@echo off ::"C:\\Program Files\\SoftInterface, Inc\\WordDocDiff\\WDD.EXE" /m"%1" /s"%2"

Set DiffDoc="C:\\Program Files (x86)\\Softinterface, Inc\\DiffDoc\\DiffDoc.exe"

%DiffDoc% /M"%1" /S"%2"

::%DiffDoc% /M"%1" /S"%2" ::/G /X

=======================================

If I press 'External Diff' (or Cntrl+D) nothing happens but It works if I just do it in the CMD:

diffdoc.bat a.docx b.docx

It starts the diff tool and I can see difference in the documents....

It looks like a bug somewhere!  
[](https://community.atlassian.com/t5/Sourcetree-questions/External-diff-merge-not-working/qaq-p/451496?attachment-id=6173){#link_116c211aed8a2b}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/13828/1/sorce-tree-external-diff-cfg.png){#display_116c211aed8a2b_0}


author: James Rickards
body: I had the same issue with version 1.5.2.

It only occured when the remote file was deleted, so was not as bad as I thought.

I have reported the bug to Atlassian via Support.

A bug has been raised. [](https://jira.atlassian.com/browse/SRCTREEWIN-1666)<https://jira.atlassian.com/browse/SRCTREEWIN-1666>


author: Kevin Alons
body: I am having the same problem (this used to work flawlessly). Losing external diff functionality is a major pain, please help...
Does SourceTree for windows support git-svn yet?
Asked by Andrew Liddle:

Hi does SourceTree for windows support git-svn backed repo's yet? currently using version 1.2.3.0.

If not any idea when this is likely to happen?


Answers:
author: Jeff Thomas
body: git-svn is currently not supported in the Windows client, but you can follow the JIRA issue and vote for it if you like: <https://jira.atlassian.com/browse/SRCTREEWIN-119>

comments: author: Jason Kurian
body: So I'm assuming it isn't supported on the OS X client either? Just for reference I'm on OS X 10.9.1 and using Xcode tools 5.0.2.


author: Jeff Thomas
body: Jason: I don't use git-svn, but I believe it is supported in SourceTree on OS X. Are you having trouble with it?


author: Jason Kurian
body: I'm asking because I can't seem to checkout a remote branch locally on SourceTree Version 1.8.0.3 (1.8.0.3). EDIT: This is the error:

```
git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree checkout -b http --track http fatal: Cannot setup tracking information; starting point 'http' is not a branch.Completed with errors, see above
```


author: Jason Kurian
body: Kieran: I appreciate it, thanks! It's nice that you guys are \[relatively\] quick to respond :). Apologies for the noise, but I was just curious if anyone else had run into the issue and had a workaround (because I can't think of one).


author: KieranA
body: Hey Jason,

Sorry you've asked this question in three places so I can't keep up! :) I've filed an issue for you here: [](https://jira.atlassian.com/browse/SRCTREE-2075)<https://jira.atlassian.com/browse/SRCTREE-2075>

Cheers


author: KieranA
body: git-svn is supported in OS X though, just as a note, but this is a bug that's cropped up in the Git upgrade for git-svn. In cases like these you're better to file an issue on [jira.atlassian.com](http://jira.atlassian.com), comments on the blog or comments in already answered questions on [answers.atlassian.com](http://answers.atlassian.com)don't generally get picked up on. When you create issues in JIRA we (the developers) get e-mails instantly.

Cheers


author: Ben P
body: git-svn support now available in v1.4 <http://blog.bitbucket.org/2014/01/29/sourcetree-for-windows-1-4-released/>


author: Andrew Liddle
body: ok thanks, hope it get done soon
SourceTree: Simultaneously pulling multiple repositories per application
Asked by Andrew Baumgart:

Hello, question regarding SourceTree's ability to simultaneously pull multiple repositories with one click. In my work environment there can be any number of virtual machines which are essentially a standalone environment. All of these virtual machines mirror each other in terms of the infrastructure of the repositories, but the branches of the repos themselves may be different. I group these virtual machines by folder (VM1, VM2, VM3, so on and so forth) and each VM has a double-digit number of repositories that make up its build. My question is, is there a way to pull each of the VM (which is a SourceTree folder) with one click? I have not found a way to do this and it gets very cumbersome managing each repository individually - for instance if I haven't used a VM in a couple months, I have to go through each of its supporting repos and pull to get it up to date. Any tip to solve this issue would be fantastic. Thanks!


Answers:
author: Timothy
body: I don't think that SourceTree has this or rather any other client has this. You should consider scripting this.
Sourcetree installation: source file not found data1.cab
Asked by polq:

<https://www.dropbox.com/s/7hwmh0bci9maapb/Clipboard01.png>

im getting this error during the installation, all my teammates installed srctree without any problems. Do you have any clues?


Answers:
author: Timothy
body: Could be that your installation file is corrupt. Have you tried downloading it again and then installing it with admin privilleges?
When pushing a branch what is the difference between a tick in the Track checkbox and a solid square in the Track checkbox?
Asked by Max Edwards:

When pushing a dialogue box shows asking which branches to push. To the right of each branch is a checkbox called 'Track?'. What is the difference between a tick and a solid square?


Answers:
author: Disco Patrick
body: Hi Max, I was also interested to know this. I found a (sort of) answer here: [](/questions/88528/what-does-the-track-checkbox-do)<https://answers.atlassian.com/questions/88528/what-does-the-track-checkbox-do>

The solid square (with a hyphen inside) means 'leave things as they are'. So if you were already tracking that remote branch, you will continue to track that branch - unless you uncheck the box.

Presumably, leaving the selection as a solid square means one less command for SourceTree to execute.


Tags: windows
Sourcetree branches selector keeps switching back to All Branches
Asked by Cyprian Kowalczyk:

Since one of the updates the branches selector (select box next to \`Show/Hide Remote Branches\`) keeps reverting to \`All Branches\` after git operations. I would like it to remember the selected branch.


Answers:
author: davidbjames
body: This is very annoying, and has been around for several updates. If I select "Hide Remote Branches", then select another branch (from the one I'm currently on) SourceTree reverts to "Show Remote Branches".
Using the embedded hg command line
Asked by JannieT:

I'm really happy that SourceTree has Mercurial embedded. On the odd occasion I would like to run an hg command from the CLI, like

```
hg status
```

To which I get

```
hg: command not found
```

Can I make modifications to my environment path to get the command line working for the embedded version, or do I have to install and manage a separate instance of Mercurial if I want to accasionally use the command line?

I'm using SourceTree OS X version 1.7.2


Answers:
author: Jeff Thomas
body: Jannie: I think you'll have better luck installing a package manager like [Homebrew](http://brew.sh/). You can then install Mercurial with

```
brew install mercurial
```


Tags: command-line
Preventing SourceTree from splitting up commit message?
Asked by thomthom:

Have a look at this commit I made for a GitHub repo:

<https://github.com/thomthom/SKUI/commit/17d6b9f17d6ab358c29b793059c82300554a12f1>

The title I entered was:
> Ensuring that checking and unchecking methods of the Checkbox control work. Fixing #61.

But somewhere along the lines that got broken in two parts and the trailing part ended up in the description. This looks odd and it also prevented the issue from being automatically closed.

Is there a way to prevent SourceTree from splitting up the commit message?


Answers:
author: KieranA
body: Hi Thomas,

This isn't anything to do with SourceTree. GitHub take a certain amount of characters/words and use that as the title. Anything beyond that is treated as part of the message. It's just the way they format commit messages. Take for example this: [https://github.com/kieransenior/jquery-treetable/commit/980bdd3ab61d54c850ada6746aadeaa4967d7277](https://github.com/kieransenior/jquery-treetable/commit/980bdd3ab61d54c850ada6746aadeaa4967d7277.). Same thing happens (not my commit). You can search throughout GitHub and see the same thing happening.

Cheers

comments: author: thomthom
body: Oh, I was so sure I'd used longer commit messages than that. Maybe that was BitBucket then. My bad.
Where did my staging window go?
Asked by aormsby:

I recently updated to 1.2.3 on Windows, and I odn't have a staging window anymore. All I see is one tall panel in the middle that shows my project files and their current state. How do I get my split staging windows back?

@Jeff Yes, I suppose an image would be helpful.... Here you go! So I'm seeing the pane in the center there, but I don't have a staging window.

![](../../../upfiles/uploaded_image_1.png)

@timothy Unforunately, I don't have a separator there. None of the staging controls in your image appear for me, either.


Answers:
author: Jeff Thomas
body: Tools \> Options \> Git \> Tick "Use the staging area"

![](../../../upfiles/Screen_Shot_2013-10-03_at_6.00.17_PM.png)

comments: author: Jeff Thomas
body: You're welcome. It took me a while to figure out what was going on, I missed that setting a couple times.


author: aormsby
body: It always amazes me that the simplest solutions are the ones that are easiest to miss.

Thanks, Jeff!


author: Timothy
body: Have you tried to drag the separator?

![](http://i.imgur.com/mvzujzI.png)


author: Adrian von Gegerfelt
body: The latest version of SourceTree removed the static staging area!

I miss it so much! I sometimes have lots of changed files but only want to commit a few of them, shift clicking then dragging is much faster than ticking boxes! :(


author: Jeff Thomas
body: Is this a Mercurial repository? I was able to recreate the view you're seeing if I open a Mecurial repository. I see your .gitignore, but it looks like Sourcetree detected this as Mecurial.

Merurial doesn't have staging like Git.


author: aormsby
body: Yes, I suppose that would be helpful.... Here you go! So I'm seeing the pane in the center there, but I don't have a staging window.

![](../../upfiles/uploaded_image.png)


author: Jeff Thomas
body: Adam: Could you provide a screenshot of what you're seeing? That might help to figure out what's going on.
Push only some commits
Asked by gabrielmaldi:

Is there a way to push only some of your commits using SourceTree?

<br />

Thanks


Answers:
author: Branislav Siarsky
body: You can use Custom actions, on my Mac I've done:

1. Preferences custom actions =\> Add   
   **Menu Caption:** Push to master till this commit  
   **Script to run:** git-push-till-commit  
   **Parameters:** $SHA
2. In a directory, which will be searched by PATH I've created a shell script "git-push-till-commit"  
   vi git-push-till-commit

   ```
   #!/bin/bashSHA_COMMIT_HASH=$1echo "Calling git push origin $SHA_COMMIT_HASH:master"git push origin $SHA_COMMIT_HASH:master
   ```

   chmod a+x git-push-till-commit
3. Now if I wish to push some subset of commits, I select the last one =\> Right mouse click =\> Custom actions =\> Push to master till this commit


author: KieranA
body: Hi Gabriel,

We support this functionality in Mercurial (just right click on a log row and hit 'Push'). This will just pre-fill the revision field in the push sheet, so you can do this manually from the push sheet, too. We don't currently support this in Git despite it being technically possible using the syntax

```
git push &lt;remote&gt; &lt;commit SHA&gt;:&lt;remote_branch&gt;
```

You can file feature requests at [jira.atlassian.com](http://jira.atlassian.com) if you'd like to see this in SourceTree.

Cheers

comments: author: gabrielmaldi
body: Thank you, Kieran. I have submitted two feature requests:

* Mac version: <https://jira.atlassian.com/browse/SRCTREE-1879>
* Windows version: <https://jira.atlassian.com/browse/SRCTREEWIN-1084>


author: KieranA
body: Just remember it pushes all commits 'up to' the commit you specify. Thanks for the feature requests!


Tags: git
Is there any way to hide tags?
Asked by CM:

I was wondering if there's a way to hide tags in the log view?


Answers:
author: Jeff Thomas
body: Clint: I don't see a way to hide tags. You might consider raising a JIRA issue for the request.

<https://jira.atlassian.com/browse/SRCTREE>

comments: author: CM
body: Created... <https://jira.atlassian.com/browse/SRCTREE-1889>


author: CM
body: I found a workaround... instead of cloning the repo do:

1. mkdir \<repo name\>
2. cd \<repo name\>
3. git init
4. git checkout -b tempBranch
5. git branch -d master (because it is the initialized empty master branch)
6. git remote add origin \<repo url\>
7. git fetch --no-tags
8. git checkout master
9. git branch -D tempBranch

This will create a repo with no tags.

To keep it from pulling the tags add:

git config remote.origin.tagopt --no-tags
Open Selected Version not working
Asked by tony_marcinek:

When I log a file I'm unable to right click on a change and "Open Selected Version" When I click on the option nothing happens.

Can someone please help me trouble shoot this? Thanks!


Answers:
author: Erik Blake
body: I'm having the same problem with the current version 1.6.13.0 on Windows. I've set the default file handler for the files in question to my editor.


Tags: git

mac