youngmon/atlassian-qna huggingface dataset:
Automatic deployment on branch commit
Asked by James Hayes:

Hi there, I'm just starting to get my head around BitBucket and I love it's potential. We have a repro that is worked on by several colleagues, and when each is happy with their branch they merge into a staging branch. When happy with that we then merge into Production branch. Pretty standard stuff. When using SASS the staging \& producion commits go into CircleCI which then pushes to server.

For a small dev project that doesn't need to be compiled, like a basic WordPress site, I would like BitBucket to simple automatcially push the staging branch once someone has commited to it. I can see this is done as a pipline and I have the SSH keys setup and communicating with the SiteGround hosting, but cannot work out how to get the pipeline to do this. Any assistance appreciated.

Thanks

J


Answers:
author: Matija Varjacic
body: Hey.  
I believe you can create a git repo on the siteground. When you have that repo and you have SSH setup, you can clone bitbucket repository and then have a simple pipeline.  

```
pipelines:
branches:
  staging:
    - step:
    script:
      - git remote add siteground ssh://user@siteground.biz:18765/home/user/repo.git ## or something similar
      - git push master siteground
```

More  
<https://community.atlassian.com/t5/Bitbucket-questions/Is-Siteground-blocking-connection-to-bitbucket/qaq-p/779709>

comments: author: James Hayes
body: Thanks [@Matija Varjacic](/t5/user/viewprofilepage/user-id/4875069) I'm so close now, I can taste it !! Just got to work out a couple of errors in the above but I can have a bit of trial and error. I have it saved correctly now, I changed master to staging in your code, but it cannot find that. What have I done !?


author: James Hayes
body: Ah it looks like bitbucket will only try to connect through port 22 even though I have the port in the URL. Need to speak with siteground about opening that port I think. Very strange.


author: James Hayes
body: I thought I had asked quite a simple question, am I way off the mark on what I am expecting BitBucket to do? Apologies for the noob approach!


Tags: bitbucket-development

bitbucket-pipelines
Add an user to account using the api
Asked by Ido Gafinovitz:

Hey!

I'm looking for an API endpoint to help me add an user to account. and I couldn't find such one...

Can you guys assist?

Thanks!


Answers:
author: Patrik S
body: Hello [@Ido Gafinovitz](/t5/user/viewprofilepage/user-id/4996076) ,

Welcome to Atlassian Community!

If by 'add a user to account' you meant granting direct permission to a given user in a repository within your workspace, we have the following Bitbucket API endpoint that can be used for that porpoise :

* [Update an explicit user permission for a repository](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-repositories-workspace-repo-slug-permissions-config-users-selected-user-id-put)

However, if you meant adding a user to a specific group in your workspace, we still just have a Bitbucket API 1.0 endpoint for that, which you can find below :

* [put a new member into a group](https://support.atlassian.com/bitbucket-cloud/docs/groups-endpoint/#PUT-new-member-into-a-group)

You can refer to the documentation of both endpoints above, and in case you run into any issues, feel free to ask. Also, as both of the endpoints needs the UUID of the user being added, you can get the UUID from [List users from a workspace.](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-workspaces/#api-workspaces-workspace-members-get)

Thank you, [@Ido Gafinovitz](/t5/user/viewprofilepage/user-id/4996076) .

Kind regards,

Patrik S


Tags: bitbucket-cloud

cloud
Submodule in subdirectory deeper than one level is disabled for deletion
Asked by Alexander Fokin:

Hello,  
We can create a submodule in subdirectory deeper than one level, for example Application/Driver/. But I can not delete this submodule after that, Delete action for submodule is disable in menu on right button click mouse. If submodule is created in a directory on the same level as .git file all will be Ok, I mean the deletion is enable.

SourceTree version 2.1.2.5![2017-06-30 15_05_23-SourceTree.png](/t5/image/serverpage/image-id/2653i4405C148652095FD/image-size/large?v=v2&px=999 "2017-06-30 15_05_23-SourceTree.png")


Answers:
author: Alexander Fokin
body: Hello,

to overcome that trouble I created a scrypt, it works good for me.

SUBMOD="keyb_services"  
SUBMODPATH="Drivers/keyb_services"  
git config -f .gitmodules --remove-section submodule.$SUBMODPATH  
git add .gitmodules  
git config -f .git/config --remove-section submodule.$SUBMODPATH  
git rm --cached $SUBMODPATH  
rm -rf .git/modules/$SUBMOD  
git commit -m $SUBMOD  
rm -rf $SUBMODPATH


author: Ana Retamal
body: Hi Alexander, this sounds like a bug and I've reported it at [SRCTREEWIN-7571](https://jira.atlassian.com/browse/SRCTREEWIN-7571). You can watch that page for further updates, you can also add a comment if you have any question.

Cheers!

Ana


Tags: windows
Updated to SourceTree 2.0 and it has not worked at all
Asked by Sonam K Pujji:

Hello, I recently updated the SourceTree software from 1.8 to 2.0 , the reason was because I was getting several alerts upon starting SourceTree to update. Now I have updated, I am,unable to refresh my repository since, and cannot checkout either. Usually I am able to checkout a branch from bitbucket using the checkout with sourcetree option. This feature no longer works.


Answers:
author: Ana Retamal
body: Hi Sonam, you might be affected by the bug [SRCTREEWIN-7223](https://jira.atlassian.com/browse/SRCTREEWIN-7223). Can you try disabling the option "Use this version of SourceTree for URI association" under **Tools \> Options**, then enable it again and see if "Check Out In SourceTree" is working again?

Alternatively, you can try installing the latest SourceTree version from [our website](https://www.sourcetreeapp.com/).

Let us know if it's working for you now!

Regards,

Ana


Tags: windows
Browse at revision ?
Asked by Curtis Newton:

Hello,

I did a push today but my colegue in the meantime, dit one too,

so we endu up with a head revision having the wrong merge, apparently it took the version of my colegue which was older than mine

usualy with mercurial/tortoise, there is a "browse at revision" but in source tree I cant find it

also there are options like compare to parent/compare to local but I cant find any option like that in source tree...

thanks


Answers:
author: Ana Retamal
body: Hi Curtis, those features are not available for Mercurial in SourceTree. If you're interested, you can send us your feature request at [jira.atlassian.com](https://jira.atlassian.com/secure/Dashboard.jspa) by clicking on the Create button.

Cheers :)

Ana

comments: author: Curtis Newton
body: I am using GIT now, I used tortoise HG as an example of available menu features

actually the issue is this : a collegue of mine did a commit/push and his version became the head while mine was newer

so I want to be able to browse a revision and revert a file or a directory at that revision
Change remote repository password
Asked by eduardo holzmann:

I have remote repositories and the server password change, now i cant set the new password to sourcetree cuz just say permission denied and dont ask for new credentials, ive already delee windows store credentials, an all my source tree rememered users, still dont prompt for set new password, reinstall the program probably resolve the problem but something like this must have some kind of suport, just a simply password change cant be so hard! Please some light?


Answers:
author: yvan khekhone
body: hi i have a problem with authentication failed and i have to change my credential.

i go to preferences -\> acounts and add my credential password

but it s not working

when i delete all account when i want to pull or push there a authificaation failed

i m working in mac and soucetree version its 4.2


author: Ana Retamal
body: Hi Eduardo! Are you using SourceTree for Windows or Mac? In the Windows version the login information for each server is kept in **Tools \> Options \> Authentication**.

In Mac, it can be changed by clicking on **Gear icon \> Accounts**. Alternatively, you can go to the "Keychain Access" utility on the Mac, search for the remote password and delete the stored key. Then the next time you start SourceTree, it will ask you for your new credentials.

Let us know if this worked for you!

Regards,

Ana

comments: author: Weh Pedat
body: Hi,

all. Nopp. It is not working this way. The whole approach is absolutely error prown. Using 2.6.10.0. Now I am even unable to assign an account to an internal github service. Do not know who designed this.

Let me know how to fix this. My dev process is blocked.

W.


author: Douglas Ivers
body: nevermind - it seems to be working now


author: baja88
body: For those of you still experiencing the issue, the solution that worked for me was:

1. delete all the saved passwords associated with the account

2. try pressing push-button again

3. hopefully you will get the prompt for new credentials.

Good luck!


Tags: atl-gruland

windows
Sourcetree has stopped working, but when run installer, it works well
Asked by ???:

When I start Sourcetree with icon in my desktop.

application run and sooner it has stopped working with windows error message(it has been stopped)

but when I run installer, it run and works well

I think the 'bb016' tab cause this problem. but I don't know why there is bb016 tab.

(when I run installer there is no 'bb016' tab)

![capture.PNG](/t5/image/serverpage/image-id/2610i9ABC9B9A980C3059/image-size/large?v=v2&px=999 "capture.PNG")

I do reinstall, delete atlassian folder in appdata, but it didn't solve yet

What should i do?

username: bb016

OS: windows 10 EDU


Answers:
author: Ana Retamal
body: Hi! From your explanation it looks like you might have a git folder inside your user folder (bb016) in your computer. When you open SourceTree using the icon in the desktop it will look at the current installation, will believe that this directory is a repository and will attempt to open it.

Can you find the folder *bb016* in your computer and make sure there's no git folder in it? If you find the git folder, you can jut delete it.

Hope this helps :)

Ana

comments: author: ???
body: Thank you very much

the problem is solved!!!

I don't know why but, the user folder(bb016) set as 'local repository'

I think i make some mistake during learning about git bash.

I appreciate your helpping me


author: Ana Retamal
body: I'm glad I could help you :) Maybe you cloned something by mistake into that folder and the git folder got created. For Git, any directory containing a git folder counts as a repository.

Have a nice day!

Ana
Basic specs of SourceTree
Asked by Tushar Sondhi:

Can any1 please tell me what are the minimum specs required to run SourceTree because I have 8 gb ram and sourcetree after every 2 seconds shows not responding.


Answers:
author: Ana Retamal
body: Hi Tushar, SourceTree doesn't really require any specific system requirements to run properly. Just make sure you have .Net 4.5.2 and that you have the Service Pack 1 if you're on Windows.

If it's still is not working properly for you, can you let us know which version of SourceTree and OS are you using? Can you also tell us if you have a large amount of repos, or if any of the repos is exceptionally big?

Best regards,

Ana
Using DiffMerge for conflict resolution (OSX)
Asked by Jay McDonald:

I have set DiffMerge as my application for both visual diff tool, and merge tool, but when I click launch external merge tool, it flashes a dialog box, and does nothing else. How do I get this to work?


Answers:
author: Manju
body: Hi Jay,

Can you provide some screenshots, logs and specify the version of SourceTree you are using?

If its not v2.5.3, I would recommend you to update to the latest version and give it a try before you provide more detials in here.

Thanks!


Tags: mac
PortableGit.7z cannot open file as archive
Asked by Vishnu Tupe:

I am trying to install sourcetree on my office machine however getting an error that unable to extract C:....\~\\PortableGit.7z

Please check your sourcetree options.

System.Net.WebException: The remote name could not be resolved: 'downloads.atlassian.com'

any pointers/help on this is highly appreciated.

Thanks in advance.


Answers:
author: Vishnu Tupe
body: Hi All,

I was able to fix the issue by first installing GiT 2.11.0 on my machine and then using option from Tools -\> Options -\> Git -\> Enable Git support

and it worked for me..

seems Installation was not able to download and install Git on my machine due to office policy.

Thanks.

Cheers,

Vishnu Tupe


author: Ana Retamal
body: Hi Vishnu, we had a bug filed about it at [SRCTREEWIN-6890](https://jira.atlassian.com/browse/SRCTREEWIN-6890). Can you try if any of the suggestions there helps you?

If not, could you try re-running the process immediately after a rebooting your computer? It could be that one of the files in the target folder was already in use (git.exe, ssh-agent.exe, sh.exe)

Lastly, don't forget to provide which version of SourceTree and OS are you using.

Best regards,

Ana

comments: author: Vishnu Tupe
body: Thanks Ana for the pointers Tried some ways like un-installing and re-running, moving SquirrelTemp to diff location however didn't work out

The sourcetree version I am installing is 2.1.2.5 and OS version is windows 10 enterprise 64 bit.

Let me know if any more inputs. Thanks again.

Regards,

Vishnu
Does Sourcetree support Enterprsie Git
Asked by Muralikrishna Bandaru:

Our organization has an enterprise GitHub .I was trying to use soucetree but there is no way to add the enterprise URL for our github in source tree.

Do currently sourcetree support this feature ?If yes how can we add it ?


Answers:
author: Manju
body: Its both yes and no.

Yes, because we support any git repository to be managed with SourceTree. You can clone a repo from any URL and when prompted, provide the credentials to be used with it and the rest should work.

No, because you cannot add your account as one of the hosted accounts and list all your remotes. We will consider supporting this in a future release.

You can refer to the SourceTree [Documentation](https://confluence.atlassian.com/get-started-with-sourcetree) to know more.

Feel free to let us know if you need more help. And while you do it, please make sure you specify the OS and SourceTree vesion you are using to help you better.

Thanks!
How do I prevent the SourceTreeSetup.exe from starting SourceTree at the end of the installation?
Asked by Vassilis Rizopoulos:

I am using silent installation parameters (/qb) to provision SourceTree in all our development environments.

It has been working fine till at one point (not so recently) SourceTree was started by default at the end of the installation process.

This makes no sense for unattended/silent installs and also produces a lot of confusion to developers suddenly presented with a SourceTree window when not expected - que increased nummber of confused support calls.

Behaviour is reproducible with 1.10.23.1 and 2.1.2.5. To make it even wierder, calling the setup executable with any parameters will start SourceTree if it has been previously installed.


Answers:
author: Ana Retamal
body: Hi Vassilis! We changed our installer from version 1.10. The Squirrel installer causes the application to get started after the installation. We don't currently support silent installations and it's not possible for us to disable that behaviour.

However, we're now reviewing options to adapt SourceTree to the needs of our users :) Regarding silent installations, we have a Feature request at [SRCTREEWIN-6570](https://jira.atlassian.com/browse/SRCTREEWIN-6570). You can vote for it, add a comment or watch it to receive further updates.

Best regards,

Ana


Tags: install

windows
Cannot open at revision
Asked by Curtis Newton:

Hello,

Clicking on "Open Selected Version" gives an error

Open file ..... failed with code -1 ...Application not found

but I cant find any setting to tell sourcetree where is my external editor

I tried custom actions, they just dont work at all, nothing happens when I click on them although I added one to use sublimetext with $FILE variable

I use windows 7 - 64

thanks


Answers:
author: Curtis Newton
body: anyone ?
SourceTree 2.1.2.5 offline registration
Asked by Michael Leach:

Is there any way to register SourceTree 2.1.2.5 on an offline computer (as in NOT Internet connected)? Company security policy prevents me from connecting that computer to the Internet as well as prohibits the installation of SourceTree on any computer that can access it. I've seen articles about previous versions but wanted to ask if this has been changed with the current version.


Answers:
author: Justin Baldock
body: Hi, I also have a similar issue. I have an unclassified computer I can run the software, connect, register and download my licence file. I want to use this software on an offline network. Can't I copy across the installer and licence file somehow to get it to work without internet?


author: Thomas Lann
body: I also would like to use an offline registration.


author: Marco Brade
body: Within our company we used sourcetree 1.8.2.2 which is beeing able to even install without the need to have an internet connection.

With 2.1.10.0 it is not possible any more to even install it without internet connectivity. Problem is that in our company only special users can install software but those users can not go to the internet.

My regular user can go to the internet via proxy but is not able to install software.

Why not moving the registration process to the first start of the application after installation. At least this will solve some issues but not all. And be aware that a proxy with authentication is also often a common usecase. So to be able to configure that would be a must have or use the system settings.

BR

Marco


author: Ana Retamal
body: Hi Michael! At the moment, offline registration for SourceTree is not possible. You'll need to connect to the internet at least once so you can register the product with your Atlassian account.

We are tracking direct feedback on this specific request at [SRCTREE-3593](https://jira.atlassian.com/browse/SRCTREE-3593). Please feel free to add your feedback and specifics around your teams needs.

Cheers!

Ana

comments: author: Michael Leach
body: Ana, Thanks for the quick reply even though it's not what I was hoping to hear. I'll add a comment to SRCTREE-3593 although most likely we'll look for another product.


author: Ana Retamal
body: I'm sorry to hear that, Michael. Please let us know if there's anything else we can do to help.

Best regards,

Ana


author: Quin Kan
body: Is it correct that we can install SourceTree 2.1.2.5 WITHOUT internet connection?

I tried to install 2.1.10 recently, and I think an internet connection is required. So any verison before 2.1.10 can be installed without internet connection?

However, any version will require an internet connection for registration?

Thanks

Quin
Setting on Mercurial server for SourceTree
Asked by hisaotsu:

I built a Mercurial server in my test bed.  
The repository can be cloned and pushed without any problem from hg command on Solaris/Linux box.

However, trying to clone the same repository from SourceTree for Windows, it seems to be unable to recognize, but it tells me it is an invalid repository type.

What are the settings I should check to include in hgrc for SourceTree to recognize as a Mercurial repository?


Answers:
author: Ana Retamal
body: Hi Hisao, when you receive that error message you should be getting a "Details" button too. Can you let us know what does it say when clicking on it?

Apart from that, can you provide the following information:

1. SourceTree version and OS version
2. Log file, you can find its location at [SourceTree logfile location](https://confluence.atlassian.com/sourcetreekb/sourcetree-logfile-location-675384748.html)
3. Run this command followed by the URL of the repo you're trying to clone, and send us the input

   ```
   hg identify {URL}
   ```

Best regards,

Ana

comments: author: hisaotsu
body: Hi Ana,

Thank you for your prompt answer.

1. SourceTree 2.1.2.5 (Windows)

2. The log file is quite large, so I am quoting the part of the log. If you need the full log, please let me know how to upload it.

```
ERROR [2017-06-30 17:59:15,615] [39] [SourceTree.ViewModel.CloneNewDialogViewModel+<CheckSource>d__197] [MoveNext] - Could not determine repository from: 'http://ht3.jp.acme.com/hg', output was:
ERROR [2017-06-30 17:59:15,616] [39] [SourceTree.ViewModel.CloneNewDialogViewModel+<CheckSource>d__197] [MoveNext] - System.ComponentModel.Win32Exception: ??????????????????
*** failed to import extension hggit: No module named hggit
abort: HTTP Error 502: notresolvable
fatal: unable to access 'http://ht3.jp.acme.com/hg/': The requested URL returned error: 502
```

3. Please see below.

```
D:\htsujimu\Documents\02_CU>C:\Users\htsujimu\AppData\Local\Atlassian\SourceTree\hg_local\hg.exe identify http://ht3.jp.acme.com/hg*** failed to import extension hggit: No module named hggitabort: HTTP Error 502: notresolvable
```


Tags: mercurial

windows
SourceTree for Windows fails to fetch git repository
Asked by hisaotsu:

Hi,

SourceTree for Windows 2.1.2.5.

When I tried to fetch a git repository, it fails with the following error, a part of which is unreadable regardless of the language setting. (I use Japanese, but even I set source tree to English and restart, it does not change the message.)

It fails both in with/without a proxy from the same PC.  
The very same repository can be fetched from SourceTree Mac 2.5.3 (115) and 2.5.3 (116, updated today).

The below is the message I see on Windows SourceTree when I fetch the repository.

\`\`\`

git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=manager-st fetch --prune origin  
fatal: TypeInitializationException encountered.  
'Microsoft.Alm.Cli.Program' ??\^?C?v???????q????O??X???\[????????B  
\`\`\`

So, my question to you here is -- what do I need to check on Windows?


Answers:
author: Ana Retamal
body: Hi Hisao! Can you have a look at the response by Michael Minns at [this thread](https://community.atlassian.com/t5/SourceTree-discussions/Broken-Windows-SourceTree-2-1-2-5-with-Embedded-Git-2-12-2-git/td-p/597821) and follow his steps?

Cheers,

Ana


Tags: windows
Permission Denied (publickey) on macOS Sierra with gitlab
Asked by Taylor Matte:

My command-line setup works:

```
ssh -T git@gitlab.comWelcome to GitLab, Taylor!
```

But when I try to pull from SourceTree I get this error:

```
git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree fetch origin Permission denied (publickey).fatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists.Permission denied (publickey).fatal: Could not read from remote repository.
```

Same error when pushing:

```
git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v --tags origin refs/heads/master:refs/heads/master Pushing to git@gitlab.com:whatever/whatever.gitPermission denied (publickey).fatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists.Pushing to git@gitlab.com:whatever/whatever.gitPermission denied (publickey).fatal: Could not read from remote repository.
```

I have checked that the ssh-keys are correct in gitlab and that there are no weird permissions in the repo (which is a shared git repo). Any ideas?


Answers:
author: Manju
body: Can you check the agent for loaded keys and see if there is any discrepancy?

This will list all keys.

```
ssh-add -l
```