youngmon/atlassian-qna huggingface dataset:
Pipeline example for simple push
Asked by James Hayes:

I've tried asking this before, but re-reading my question it was more like an essay!!

Would anyone be able to give me an example of how to build a pipeline that simply pushes to hosting on a on a branch commit?

Ie when I merge my branch into staging, bitbucket pushes staging to SiteGround hosting for me.

Many thanks, J


Answers:
author: Mateus T
body: Hi James!

Thank you for reaching out to the Atlassian Community!

Reading through your question, my understanding is that you would like Bitbucket to automatically push your changes into your SiteGround hosting services once your branches are deployed to staging.

If that's the case, you can configure your **bitbucket-pipelines.yml**file to perform the push on staging deployments such as this:  

```
pipelines:
  default:
    - step:
      name: Deploy to SiteGround
      deployment: staging
      script:
        - echo "Deploying to SiteGround"
        - git push ssh://user@host:port/path
```

Configurations made on the SiteGround side of things are a bit outside our support scope, but I found the following article which should help you perform this initial setup and add your private SSH key to your hosting service:

* [Deploying SiteGround via git push](https://9seeds.com/deploying-siteground-via-git-push/)

You can also reference our Pipelines documentation on how to add your SSH Public Key to your Pipelines configurations:

* [Use SSH keys in Bitbucket Pipelines](https://support.atlassian.com/bitbucket-cloud/docs/variables-and-secrets/#Use-SSH-keys-in-Bitbucket-Pipelines)

Let me know if this helps with your deployment setup!

Cheers,

Mateus T


Tags: bitbucket-development

bitbucket-pipelines

cloud
After I set up "two-step verification", I still can't enable pipelines
Asked by David_Dong2023:

When I tried to switch the button "Enable pipelines", it prompted me to "Two-step verification is required to enable pipelines". After I set up two-step verification, I log out and log in using two-step verification, the prompt is still there.

How to handle it?


Answers:
author: Theodora Boudale
body: Hi [@David_Dong2023](/t5/user/viewprofilepage/user-id/4999308) and [@Lucas Mbiwe](/t5/user/viewprofilepage/user-id/5000957),

Bitbucket uses Atlassian accounts (the ones for <https://id.atlassian.com/>) for authentication.

At the moment, it is possible to set up 2FA both for a Bitbucket account (from this page: <https://bitbucket.org/account/settings/two-step-verification/manage>) and also for the linked Atlassian account (from this page: <https://id.atlassian.com/manage-profile/security>).

In order to enable Pipelines, you need to enable 2FA for the Bitbucket account (instead of the Atlassian account).

It sounds like you may have enabled the Atlassian account 2FA, which is not taken into account when enabling Pipelines.

After you enable Bitbucket 2FA, you may want to disable Atlassian account 2FA, in order to avoid entering a 2FA code twice when logging in to Bitbucket.

Kind regards,  
Theodora

comments: author: Lucas Mbiwe
body: Thank you for clarifying this, [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086). Makes perfect sense.


author: Theodora Boudale
body: You are very welcome Lucas, please feel free to reach out if you ever need anything else!


author: simon.scarpa
body: This worked for me, thanks


author: Varick Johnson
body: not working for me please help me asap im frustrated due to this


author: Varick Johnson
body: anyone there


author: Theodora Boudale
body: Hi [@Varick Johnson](/t5/user/viewprofilepage/user-id/5022675) ,

I'll reply to your post here: <https://community.atlassian.com/t5/Bitbucket-questions/Regarding-pipeline/qaq-p/2125173>

Kind regards,  
Theodora


author: Patrick Henninger
body: Also do not forget to confirm the email address after you click "enable 2fa".


author: Lucas Mbiwe
body: [@David_Dong2023](/t5/user/viewprofilepage/user-id/4999308), I ran into the exact same problem. That's how I found your question.

When I double-checked my 2FA setup up in my account settings, it looked as if I hadn't set it up yet, although I had just logged in using a 2FA code from my authenticator app.

I then scanned the QR code with my authenticator app again. Interestingly, the first time I did it the app set the entry up as 'Atlassian' with my email address as user name, the second time it resulted in 'Bitbucket' with my Atlassian user name as the user name. I'm pretty sure I did the exact same thing as the first time, but obviously the result was a different one. ??

The good news is after the second time setting up 2FA I was able to enable the pipelines in my project.


Tags: bitbucket-cloud

cloud
My SSH key disappeared
Asked by Nuno Castro:

I can push and pull all repos through ssh without any problem but my key is nowhere to be found. Its not in my personal settings, not in the repo settings... Any ideia where it went?


Answers:
author: Mateus T
body: Hi Nuno!

Welcome to the Atlassian Community!

SSH keys can be stored on three different levels:

1. **Your personal Settings:** Keys added to your personal settings should allow you to use Git over SSH to any repositories you have access to;
2. **Repository Settings:**Keys added to repositories settings are referred to as access keys, and provide you with read-only access to that repository only;
3. **Workspace Settings:**You can also add keys to the workspace level. In this case, this key should provide you with read/write access to all repositories hosted within this workspace.

In this case, since you cannot find your keys under your personal settings and inside your repositories, I'd advise checking your shared workspace's settings in order to confirm your Key is there! You can achieve this by clicking on your**Avatar** \> **All workspaces** \> **Manage** on your shared workspace \> **SSH Keys.**

Cheers,

Mateus T

comments: author: Nuno Castro
body: Hey Mateus.

Thanks for the reply. They are on the 3 option you mentioned.

Best,

NC


Tags: bitbucket-cloud

cloud
version 2.1.2.5 with a lot of issues.
Asked by Test Test:

Hi,

I use Source Tree from around 3,5 years. I always was really happy from it. I've installed few days ago latest version of source tree (2.1.2.5) and I suffer for a lot of issues. I didn't see any note that is beta version or anything like that. I really disappointed. One the end I even could open my source tree on my PC. It's just terible I had to install smart git and reisntall ST to version 1.

Regards,

Martin


Answers:
author: Ana Retamal
body: Hi Martin, could you elaborate a bit more on what kind of issues are you having, so we can help you with them? It will also help if you tell us from which version of SourceTree have you upgraded, and which OS version are you using.

Best regards,

Ana

comments: author: gnorkett
body: I'd like to add to this as one issue (or annoying feature) I found is how unstaged/staged file names in the log view 'pop-out' when the mouse hovers over them.

I've posted my own question about this (<https://community.atlassian.com/t5/SourceTree-questions/Version-2-1-2-5-File-list-window-file-name-pops-out-on-mouse/qaq-p/607534>) but thought I would add it to this thread since a member of the Altassian Team responded.

Greg
Can't Intall/Uninstall/Update Sourcetree
Asked by Luke Nelson _luc122c_:

I've recently moved fresh installed my OS onto an SSD. After getting that up and running and installing my programs (including Sourcetree), I wiped the HDD and changed it's letter to Z. After rebooting, everyhting in my AppData folder seems to have been lost/deleted somehow. Sourcetree now longer opens, So i tried to install it but I get an error. I try to uninstall and nothing happens (except the lsiting dissapears in Programs \& Features). However, I still can't install it. I have uploaded the error log here: [https://msuclanac-my.sharepoint.com/personal/lnelson2_uclan_ac_uk/_layouts/15/guestaccess.aspx?docid=02d33407c52ca4ebc93ea77f8490dad10\&authkey=AaOOmtpECOHWE-TnY8Cp83Q](https://msuclanac-my.sharepoint.com/personal/lnelson2_uclan_ac_uk/_layouts/15/guestaccess.aspx?docid=02d33407c52ca4ebc93ea77f8490dad10&authkey=AaOOmtpECOHWE-TnY8Cp83Q)

At the moment, I have no access to any of my Git repositories other than through Git Bash (which is a pain)!


Answers:
author: Ana Retamal
body: Hi Luke! You said you tried uninstalling but nothing happened, can you go through the following steps?:

1. [Wipe SourceTree preferences](https://confluence.atlassian.com/sourcetreekb/how-to-wipe-sourcetree-preferences-412484640.html).
2. Uninstall SourceTree (if it shows on the App\&Features list)
3. Backup then delete the directory below before proceeding with next step
   * Navigate to C:\\Users\\\<UserName\>\\AppData\\Local and delete *SourceTree* \& *SourceTree-Settings* folder
   * Navigate to C:\\Users\\\<UserName\>\\AppData\\Local\\Atlassian and delete all SourceTree Files/Folder.
4. [Download SourceTree](https://www.sourcetreeapp.com/) and install it.

If you're still unable to install SourceTree can you let us know which OS and SourceTree version are you using?

Cheers,

Ana

comments: author: Luke Nelson _luc122c_
body: Hi Ana,

As I could not work without accessing my repositories and was getting frustrated with the command line, I decided to wipe both drives and start again as I hadn't made much progress. After doing a fresh install, Sourcetree worked fine. I think my AppData folder got lost/moved/deleted at some point and as your documentation appears to show, SourceTree is heavily dependant on the AppData folder. The inability to fully uninstall the program was worrying, however this seemed to be a limitation of Squirell Intaller (Which Kraken Git also uses, hence why that would not install either!) Anyhow, the issue is resolved now thank you.


author: Ana Retamal
body: Glad to hear the issue is now solved on your side, Luke!

Have a nice day :)

Ana


Tags: windows
How do I sort my tag?
Asked by ??_Vic_ ?:

How do I sort my tag?

In version 1.9, I can use likes hotfix/tag1 to sort my tag, but in latest version I can't.

There are any ways can help me sort out my tag in the latest version?

Thank you \& Best regards!  
Vic


Answers:
author: minnsey
body: Hi,

Do you mean sorting by using "/" in the name to give foldering? If so this was broken and will be fixed in the next release.
Re-enter account and password whenever I push or pull from git server after upgrade sourcetree2.5
Asked by andyli:

Before sourceTree 2.3.1 in OSX Sierra ,it's very good at anything. But when i upgrade to the newlest 2.5.3 , it's my hell. Everytime , i need to push or pull from git, sourceTree ask me to enter account \& password even i use the remember it in keychain option in the dialog. So please help me to fix this problem. thank you so so much to everybody.


Answers:
author: Ana Retamal
body: Hi! Are you using SSH or HTTPS?

If you're using SSH, can you run this command to see which key is your SSH agent offering, whenever you get this error again?

```
ssh-add -L
```

There seems to be a known issue with MacOS Sierra not rememebering SSH keys after rebooting that might be affecting you, you can see it at [MacOs Sierra doesn't remember SSH keys between reboots](https://apple.stackexchange.com/questions/254468/macos-sierra-doesn-t-seem-to-remember-ssh-keys-between-reboots).

If you're using HTTPS, can you check that the URL you're using as the remote includes the username (so it's something like *https://user@bitbucket.org/owner/repo* ). When asked to log in SourceTree tries to load previously saved passwords, but it needs a username and a host to be unambiguous. If your remote URL has no username specified, ST uses the default one (see **Tools \> Options \> Authentication**) and tries to use that default user name and saved password, if present. If those credentials don't give you access to the repo you'll be given a login prompt instead.

If the above doesn't work, can you try using the command line and see if you get any error?

Let us know!

Ana

comments: author: andyli
body: I uses SSH URL for git


Tags: mac
How to remove deleted branches from branches in Source Tree?
Asked by feliciaimbriano:

Ever since the new update, all branches that have been deleted now show up in the list of branches. Is there any way to remove them from the list?


Answers:
author: Ana Retamal
body: Hi Felicia! Are you using Mercurial or Git? For Mercurial we have reported a bug about this, you can find it at [SRCTREEWIN-7349](https://jira.atlassian.com/browse/SRCTREEWIN-7349). The developers are currently working on a fix for it, please watch the ticket to receive further updates.

If you're using Git, can you please provide some more information such as the SourceTree version and OS you're using?

Cheers :)

Ana

comments: author: feliciaimbriano
body: I am using mercurial.
Working on two projects at once
Asked by mpwinters86:

I want to work on two projects at once. I created two projects in the sourcetree site. How can I would on both of these projects together but independitly at once, so I dont have to switch branches back and forth, and can make check ins with one, while still swapping branches, but the other project is still checked out?


Answers:
author: minnsey
body: Hi

If I've undertstood correctly you want to be able to work on 2 branches from the same repository?  

You have a couple of options, you can clone the same repository twice and checkout the different branches in the different clones.  

Alternatively if you are using Git you can make use of Git Worktrees, <https://git-scm.com/docs/git-worktree> this means you clone your repository once, but you can checkout more than one branch at a time.  

<br />

comments: author: mpwinters86
body: Two seperate projects, that are completley different from each other, but work together.
Why are document pages constantly giving 503 errors
Asked by Paul Rice:

For instance this is one of many pages that produce a 503 error

<https://confluence.atlassian.com/get-started-with-sourcetree/create-a-local-repository-847359103.html>


Answers:
author: Ana Retamal
body: Hi! We had an issue with confluence.atlassian.com but it's been fixed already. Can you check again and see if you can load your pages? I've tried opening several pages from my end and I could reach them without problems.

Let us know if you're still facing any difficulties!

Regards,

Ana

comments: author: Paul Rice
body: Hi Ana,

that page is working at the moment. The issue was very frustrating. Over several days document pages would be available and then become unavailable - often about the time the US east coast came online. As I was attempting to setup a development environment it was massively annoying - and I went elsewhere online for guidance. At the moment it looks ok.


author: Ana Retamal
body: I'm very sorry to hear that, Paul. If that happens again, please contact us immediately so we can assist you.

Best regards,

Ana


author: Helen Heath
body: I came here looking for answers to the exact same question. I'm in the middle of migrating several Atlassian products to new hardware, and the Atlassian documentation pages are invaluable - yet not available at the moment. How come, and how long will they be offline?
SourceTree Installation behind corporate firewall
Asked by Pramod Nair:

Hi

I have download the latest Sourcetree exe but when I try to run it the screen gets stuck on the Atlassian login screen. I did click on the Atlassian account button and have logged in under my username pramodx@gmail.com but the installer doesnt proceed further.

Is ther a way for me to set up the license manually?

My OS is Windows 7 and I am installing Sourcetree v 2.1.2.5


Answers:
author: Ana Retamal
body: Hi Pramod, can you try [wiping the SourceTree preferences](https://confluence.atlassian.com/sourcetreekb/how-to-wipe-sourcetree-preferences-412484640.html) and trying again?

Let us know if you could complete the registration. If you couldn't, please send us a screenshot of were you're stuck so we can continue helping you :)

Best regards,

Ana
How to mirror a repository using Sourcetree?
Asked by uday kiran:

We need to create a copy of the existing repository. To do that, we are following below steps.

1. Create a bare clone of the repository.

git clone --bare <https://github.com/exampleuser/old-repository.git>

1. Mirror-push to the new repository.

```
cd old-repository.gitgit push --mirror https://github.com/exampleuser/new-repository.git
```

This process works fine, but sometimes due to network issues, it is failing at 97%. So, can you answer my below questions.

1. Can we mirror directly from GitHub server instead of doing a bare-clone(download) and pushing it(upload).?
2. Is there any tool to do this process which supports download/upload resume and retry.?


Answers:
author: Ana Retamal
body: Hi Uday, I don't know of any tool that would allow yo to do that without almost as much work as you're doing already.  

Regarding your question about mirroring from GitHub, my recommendation would be to ask them directly as they'll be able to provide more accurate information.   

Regards,

Ana


Tags: git

github
Is it mandatory to always do a complete uninstall of SourceTree before installing a new version?
Asked by Robert Karlsson:

So it has i am starting to have problems with the latest version of SourceTree after avoiding to upgrade for many weeks. This time it is complete Freezing of SourceTree and one has to kill the process to be able to continue.

So i am wondering if there is a prerequisit to always compeltely uninstall SourceTree before doing an upgrade? As problems always comes after an upgrade has been done from SourceTree.


Answers:
author: Ana Retamal
body: Hi Robert, from which version to which version were you upgrading? If you were on SourceTree 1.9 or older, uninstalling is necessary. From 1.10 onwards, uninstalling is no longer needed.

Cheers,

Ana

comments: author: Robert Karlsson
body: Looking at the appData folder, i upgraded from 2.0.x something. Only reason for the upgrade was the security patch.

But after the upgrade the freezing problem started. It does not happen all the time, but when it starts i have to kill the process multiple times before i will be able to use SourceTree again.

Could be related to looking through the history of branches.


author: Ana Retamal
body: Thanks for the extra info, Robert. Can you let us know which SourceTree version are you using now, and in which OS?

Can you also give us more details about the freeze?

Best regards!

Ana


author: Robert Karlsson
body: OK......................................................................................................................................... I wrote a long reply and clicked in the wrong place on this screen. And the whole answer was erased. Fantastic!

Here is the short version, 2.1.2.5, Windows 10 Pro.  
Mergeing error now. Only 2 of 3 files possible to merge. SourceTree not picking up on changes to files with external merging tool. Kdiff3. No change on merging restart.  

Frezzing, kill process, restart, freeze, kill process, restart freeze, kill process. restart working normally again.


author: Robert Karlsson
body: It is ok, this can be closed. After a complete failure to close a release branch and sourcetree not being able to complete merging, i have decided to move to something more reliable. Like sourcetree used to be 1 year ago.
Missing Branches in left nav
Asked by lgroger:

We have a couple of repos on a shared server that are not showing some or all of the branches in the left nav in SourceTree. When viewing the cloned versions of those repos on our own machines, the branches are visible. My coworker first had the issue and then I updated to the latest version (Windows 2.1.2.5) of sourcetree \& now I'm having the same problem. Any idea what's causing this?

![sourcetree-screenshot.jpg](/t5/image/serverpage/image-id/2757i675C31961B487B52/image-size/large?v=v2&px=999 "sourcetree-screenshot.jpg")


Answers:
author: Ana Retamal
body: Hi Lori, this sounds like a bug we're currently working on. The issue has been fixed and the fix will be released in the next beta. There were more users with a similar problem, you can read their thread at <https://community.atlassian.com/t5/SourceTree-questions/Branches-display-broken-in-2-1/qaq-p/592836>.

Let us know if you have any questions!

Regards,

Ana


Tags: windows
Launch external diff tool for diff between two commits with P4Merge
Asked by Young Kwang Kim:

Hi, I'm using

- SourceTree 2.1.2.5 on 64-bit Windows 10

- Git 2.13.2

- P4Merge

and I have configured P4Merge as the external diff/merge tool.

![SourceTreeOpt.jpg](/t5/image/serverpage/image-id/2734i26139DE46BCB4251/image-size/large?v=v2&px=999 "SourceTreeOpt.jpg")

I have 2 branches.

![Commits.jpg](/t5/image/serverpage/image-id/2735iB69D5E1DFF44F666/image-size/large?v=v2&px=999 "Commits.jpg")

testmerge - commit 5306ab6

This commit has pushed the following picture.

![pic1b](/t5/image/serverpage/image-id/2737i3A92610D108DB315/image-size/large?v=v2&px=999 "pic1b")

master - commit 09f5e69

This commit has pushed this picture.

![pic1a](/t5/image/serverpage/image-id/2738iC60095B129EEC6BB/image-size/large?v=v2&px=999 "pic1a")

Since [P4Merge can diff pictures](https://www.perforce.com/perforce/doc.current/manuals/p4merge/diff-merge.image_diff.html), I want to diff those 2 commits with P4Merge.

![P4Error.jpg](/t5/image/serverpage/image-id/2739i3C0924BA85AF0B4F/image-size/large?v=v2&px=999 "P4Error.jpg")

If I click that action, P4Merge returns an error.

**I want to diff 2 commits to compare text codes or pictures.**

**Do I have to add "Diff commands" or parameters to diff those 2 commits?**

**Or is this feature impossible?**

**-Best Regards**


Answers:
author: Ana Retamal
body: Hi! I've created a ticket for you so our developers can look into this. You can find it at [SRCTREEWIN-7576](https://jira.atlassian.com/browse/SRCTREEWIN-7576). You can comment on it to get in touch with them, you can also watch it to receive further notifications.

Best regards,

Ana


Tags: diff

p4merge

windows