youngmon/atlassian-qna huggingface dataset:
What's the process and Impact of clone specific repository from one workspace to another workspace?
Asked by Harshavardhanreddy_D:

Hello All,

Hope you are doing well.

Could someone assist to know the process and impact when we clone or transfer a specific repository from one workspace to another workspace. If the current workspace user is discontinued and an administrative access granted to one of the member of the organization.

Eg:

<https://bitbucket.org/user1/repo1> to <https://bitbucket.org/user2/repo2>

and repo1 used for production deployments. And so as to understand what will be the impact?

Appreciate a quick response.

Thanks

Harsha


Answers:
author: Theodora Boudale
body: Hi Harsha,

When you transfer a repository following the instructions on this page <https://support.atlassian.com/bitbucket-cloud/docs/transfer-repository-ownership/> the URL of the repo is going to change, as you noted, e.g. from

<https://bitbucket.org/workspace-a/repo1> to <https://bitbucket.org/workspace-b/repo1>

Please keep in mind that repositories belong to a certain workspace, not to a user.

Developers that have a local clone of this repo, will need to update the URL of the remote in the local clone to the new one (after the transfer).

Details are provided in the documentation page I shared, in the section "**Update local configuration files with the new repository URL**".

If you have any integrations with third-party tools or scripts that use this repo, you will also need to change the URL that these integrations and scripts use to the new one.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Repository size reduced, bitbucket's size increased
Asked by M47h13u:

Hey,  

[This repository](https://M47h13u@bitbucket.org/yvaing/domination.git) was close from the 4GB limit (3.96GB).  

I used [BFG](https://rtyley.github.io/bfg-repo-cleaner/#usage) to remove most .ane .swc and .fla files from the history. Big lines:  
- git clone --mirror <https://XXXXXXXX:YYYYYYYY@bitbucket.org/workspace-id/repo.git>  
- java -jar bfg-1.14.0.jar --delete-files \*.ane  
- java -jar bfg-1.14.0.jar --delete-files \*.swc  
- java -jar bfg-1.14.0.jar --delete-files \*.fla  
- cd domination.git  
- git reflog expire --expire=now  
- git gc --prune=now --aggressive  
- git push  

While on a freshly cloned repo git count-objects -vH shows 135.12MiB, bitbucket shows 4.1GB  

Following [this question](https://community.atlassian.com/t5/Bitbucket-questions/Reduced-Repo-Size-Local-repo-size-lt-500-MB-but-on-Bitbucket-it/qaq-p/2334982) could anyone from the team run git gc on the repository, please ? Or did I messed up something during the cleanup ?  

(I do upvote [this feature request](https://jira.atlassian.com/browse/BCLOUD-11593))  

Best Regards,  
Mathieu


Answers:
author: Theodora Boudale
body: Hi Mathieu and welcome to the community!

I ran a git gc for the repository; its size has been reduced very close to the size you're seeing locally, and you should be able to push new commits. Is everything ok on your end now?

Just a heads up, I removed the repo details from your post to comply with our privacy policy.

Kind regards,  
Theodora

comments: author: M47h13u
body: Hey Theodora,  

Thanks a lot for your diligent feedback. Everything's fine now \\o/  

\> I removed the repo details from your post to comply with our privacy policy.  

Duly noted  

Best Regards,  
Mathieu


author: Theodora Boudale
body: Hi Mathieu,

That's good to hear, thank you for the update.

Please feel free to reach out if you ever need anything else!

Kind regards,  
Theodora


Tags: atl-rvw

bitbucket-cloud

cloud
Access repository stuck with Creating repository .. Please wait a moment
Asked by App Codein Bitbucket Commit:

I've access to my org all repository to call api and do statistic usage. Then I found a repository with 555 response. So I go to check it via bitbucket website  

<https://bitbucket.org/truedmp/credit-risk-score-api>  

It show this text with progress bar and stuck with it.  

Creating repository {#toc-hId--466988705}
-----------------------------------------

Please wait a moment while we create your repository.  

What happen with it? Is there anyway to fix?


Answers:
author: App Codein Bitbucket Commit
body: I've already direct contact atlassian and have my answer there.


Tags: bitbucket-cloud

cloud
How to resolve pull request issue
Asked by Rakesh Vardhaman Pahade:

Hi Team,

We have resolved the pull request conflicts but when we decrypting the password for cassandra,we are getting below error  

C:\\Users\\amit13\\Documents\>gpg --output text --decrypt response.txt  
gpg: encrypted with rsa4096 key, ID ADF5F25DF2B468F6, created 2023-04-20  
"PMI \<amit.mundare@contracted.pmi.com\>"  
gpg: public key decryption failed: No secret key  
gpg: decryption failed: No secret key


Answers:
author: Sebastian Krzewi?ski
body: Hi [@Rakesh Vardhaman Pahade](/t5/user/viewprofilepage/user-id/5214478)

I don't think that is an issue with bitbucket. For me looks like an issue with decryption. Did you try to reproduce steps from pipeline manually?

comments: author: Rakesh Vardhaman Pahade
body: Hi Sebastian,

No, I didn't try to reproduce the pipeline manually.  

will it be possible to connect through msteams,so that I can show the issue through screen sharing.


Tags: bitbucket-cloud

cloud
Need to revert master branch to yesterdays state
Asked by Manikanta_A:

Hi Team,

Looks like our master branch got corrupted yesterday so we need to move branch to yesterdays state.

Need your help asap , Since it is impacting our production release.

Thanks,

Manikanta A

PH: +91 90597788808


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

I feel your pain, having a corrupted master branch is no fun.

I assume the master branch is already shared via Bitbucket, or to speak in git terms, the corrupting changes are already pushed to the remote master branch?

In that case it is best to use \`git revert HEAD\~1..HEAD\` to create a new commit that reverts the corrupting one. If you have more than one commit (for example 3) to roll back you can use \`git revert HEAD\~3..HEAD\`. Git will one by one create new commits that revert the corrupt ones.

You can push the master branch without any problems to Bitbucket (remote) as you essentially created new commits.

Hope that helps, let me know how you go.

Best, Ulrich

// [Izymes](https://marketplace.atlassian.com/vendors/1210584/izymes-pty-ltd) - Tools for efficient Devops teams.


author: Manikanta_A
body: This has to fixed asap. Can some one look at this issue

comments: author: Ulrich Kuhnhardt _IzymesCo_
body: Please have a look at my suggestion above. You can fix this easily by using git revert. Cheers, Ulrich // Izymes


Tags: bitbucket-cloud

cloud
Update Azure Repository with Bitbucket Repository.
Asked by Osama Abdul Ghafoor:

Hi Everyone,  

I have imported my **Bitbucket** Repository to **Azure** . Now, Is there a way to keep my **Azure Repository** updated with **Bitbucket Repository** ?  

Thanks


Answers:
author: Theodora Boudale
body: Hi [@Osama Abdul Ghafoor](/t5/user/viewprofilepage/user-id/5212919),

If you make a clone of the Bitbucket Cloud repo on your machine with the --mirror option, you have a copy of the repo with all branches:

```
git clone --mirror <bitbucket_repo_url>
```

You can then navigate to the directory of the mirror clone and push to an empty Azure repo:
> git push --mirror \<azure_repo_url\>

In order to update the mirrored repository in Azure, you can run the following commands in the directory of the mirror clone

```
git fetch -p origin
git push --mirror <azure_repo_url>
```

You could write a script that performs these operations (fetch and push) and schedule it to run periodically.

<br />

Another option is to use [Bitbucket Pipelines](https://support.atlassian.com/bitbucket-cloud/docs/build-test-and-deploy-with-pipelines/) to automate this process and run a pipelines build every time there is a push to the Bitbucket Cloud repo. You could use a bitbucket-pipelines.yml file similar to that one:

```
image: atlassian/default-image:4

pipelines:
  default:
    - step:
        clone:
          enabled: false
        name: 'Mirror repository'
        script:
          - git clone --mirror ${BITBUCKET_GIT_SSH_ORIGIN}
          - cd ${BITBUCKET_REPO_SLUG}.git
          - git push --mirror <azure_repo_url>
```

Such a pipeline will run on every push to the repo, but you can also use a custom pipeline and [schedule](https://confluence.atlassian.com/bitbucket/scheduled-builds-for-pipelines-933078702.html) it to run at certain times/days.

You will need to set up authentication details to push to the Azure repo. You could use [user-defined repository variables](https://support.atlassian.com/bitbucket-cloud/docs/variables-and-secrets/#User-defined-variables) for any credentials if you want to use HTTPS. If you want to use SSH instead, you can set up SSH keys in Pipelines, and upload the public key to an Azure account that has write access to that Azure repo:

* <https://support.atlassian.com/bitbucket-cloud/docs/using-ssh-keys-in-bitbucket-pipelines/>

Kind regards,  
Theodora


Tags: azure

bitbucket-cloud

cloud
How to not add files to index when applying a stash
Asked by Troy Daniels:

I used to run SourceTree 3.0 (200) on a Mac. When I applied a stash, the changes would be made to the working copy but not added to the index, unless there was a conflict. (That seemed strange, but rarely happened.)

I now have a new laptop, running SourceTree 3.0.1 (205). Now when I apply a stash, the files are added to the index. How do I get the old behavior back?


Answers:
author: bgannin
body: Hi [@Troy Daniels](/t5/user/viewprofilepage/user-id/2652240),

I'm not aware of any changes that would cause this to happen offhand. It's not an intentional change. I've asked our QA team to investigate this and make sure it's in our suite going forward.

Brian Ganninger  
Principal Developer, Sourcetree


Tags: mac
How to minimize to tray?
Asked by JokerDen:

Is this the way to minimize SourceTree **to tray**?

I want keep SourceTree opened but don't want to have space on my taskbar for launched program. Also I want maximize from tray as quickest way return to program.

Windows 10


Answers:
author: minnsey
body: Hi  
We don't currently support that option, you can vote on an existing ticket or raise a new one at <https://jira.atlassian.com>

comments: author: JokerDen
body: Created as the new feature request: <https://jira.atlassian.com/browse/SRCTREEWIN-11340>


Tags: windows
Can't login to Sourcetree on Mac with Tower installed
Asked by David Fox:

I've been using Tower for Git for years, but wanted to try Sourcetree. When it first launches, it asks me to select Bitbucket Cloud or Bitbucket Server. I think we're using Cloud, so I select that and it takes me to Bitbucket.org and I login. It then presents a screen that asks if I want to authorize the app and lists all the permissions I'm agreeing to. All that works fine.

But at the bottom is a button that says Grant Access. When I click on it, I get a query that says, "Do you want to allow this page to open "Tower"?" with a Cancel or Allow. If I hit Allow, then Tower opens. It never comes back to Sourcetree to authorize that app and I'm stuck.

When I look at my Bitbucket settings under OAuth, both Tower and Sourcetree are now listed. But I still can't get past that initial setup screen in Sourcetree.

I've tried removing OAuth for both Tower and Sourcetree and trying again, but that didn't help.


Answers:
author: bgannin
body: Hi David,

Tower is hijacking the sourcetree:// URI and that breaks our OAuth support amongst other things. You'll want to ask them where you can disable that so Sourcetree can work properly.

Brian Ganninger  
Principal Developer, Sourcetree

comments: author: David Fox
body: Thanks! I heard back from the Tower people and got it fixed. Here's what they said:
> Hi David,
>
> Thank you for your message.
>
> You can configure this from within Tower, go to Preferences -\> Integration (see attached screenshot).
>
> Hope this helps. Let me know if you need help with anything else.
>
> Kind regards,  
> Nora

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

I tried it and got it to work.


Tags: access

mac

tower
Installing SourceTree on new computer.
Asked by jpc:

Hi, I have just downloaded sourcetree on a new computer (MAC).

I have an account and I am using it on another computer. I use it to connect to a tfs server.

But the new installation only wants to know if I use bitbucket cloud (NO) or bit bucket server (NO).

Where is option to login with my own credentials and clone a tfs repository. Or do I first have to choose either A or B above?

Thanks


Answers:
author: jpc
body: It seems the answer is to install an older version (2.1) and then update it.

The you get the github option and can skip the login. brilliant.


Tags: install

login

team-foundation-studio
Password Required For user on host github enterprise
Asked by Kamal Chanda:

Hello team,

I have been using Source Tree for years and from few days I am seeing a weird popup asking to enter the password for the GitHub when I try to clone the repo. Even after entering the password, it's asking the same again and again.

I am using Mac, my source tree version is 3.0.1 and I am using System git 2.5.

It's really frustrating and can you guys please help me.

Why can't you inform the users prior if this kind of issues persists?


Answers:
author: bgannin
body: Hi [@Kamal Chanda](/t5/user/viewprofilepage/user-id/2645908),

We aren't aware of a specific issue that you described; tickets in our [public tracker](http://jira.atlassian.com/browse/SRCTREE/) are the best way to find out if something is known and then to vote on them so we prioritize accordingly. My first suggestion would be to try removing and re-adding the GHE account. If it's still problematic I'd recommend switching to Embedded Git to help narrow down particular sources of change. If so please file a ticket and we'll triage further there. Our apologies for the frustration.

Brian Ganninger  
Principal Developer, Sourcetree


Tags: github

mac
[SOLVED] How to connect to an existing ssh key on Github with SourceTree? (Mac OSX)
Asked by Matt Brand:

I have my key configured through command line and on github so that I can clone, fetch, push and pull repos.

In SourceTree, when I try to add my account, when I first get to the screen it properly shows my id_rsa.pub, but when I click Connect Account, and authorize through Github, then it changes the key to myname-GitHub.pub, and then adds that key to github ssh keys when I click OK.

How do I add an account to SourceTree that uses my default id_rsa.pub that I have already generated?

\[SOLVED\] I had to re-open the repos with ST info cleared from \~/Library/Application Support/SourceTree, and use the password that I created when i generated id_rsa.pub.


Answers:
author: Ana Retamal
body: Hi Matthew,

Happy you figured it out, and thanks for sharing your findings with the rest of users :D

Have a nice weekend!  
Ana

comments: author: Matt Brand
body: Thanks, you too!


Tags: mac

ssh-key
Unable to log into Bitbucket account with SourceTree
Asked by Dave Sky:

I'm not sure what happened but for some reason SourceTree choked on login the other day, and I ended up changing my Bitbucket password ultimately to see if that would fix it; now it can't log in even when I use that even though I can log into Bitbucket with it through the browser.

For the below screenshot, I went to (on my Mac) SourceTree menu \> Preferences \> Accounts \> Add, which shows options Host: Bitbucket, Auth Type: OAuth, Username (No account connected), Protocol: SSH, SSH Key: id_rsa.pub.

I then clicked Connect Account, it popped up a box that seemed to connect to Atlassian's login screen through an embedded browser, it asked for my account email, I typed in the only email I use for Bitbucket and Atlassian, then the password, and then I get this odd invalid redirect and it says integration misconfigured:

![Untitled.png](/t5/image/serverpage/image-id/44150iE929DA47E0B10EAD/image-size/large?v=v2&px=999 "Untitled.png")

I can log into either my Atlassian or Bitbucket account in the desktop browser just fine... no misconfiguration issue.

If I try SSH, it also fails authentication on Fetch or Pull even though those work totally fine on my Mac's command-line git in the repo directory.

I do have an SSH key set up with the command-line repo and Bitbucket, but I just cannot get anything to work suddenly in SourceTree now. I'm using version 2.7.6 (177).


Answers:
author: bgannin
body: Hi [@Dave Sky](/t5/user/viewprofilepage/user-id/1572458),

I just mentioned the reason for this [in another thread](https://community.atlassian.com/t5/Sourcetree-questions/Having-Trouble-Logging-into-Bitbucket-from-SourceTree-with/qaq-p/993928#M27471).

Brian
Setup SSH key
Asked by Craig Pennington:

What seems to be the latest help on setting up SSH keys for SourceTree on windows is this:

[https://confluence.atlassian.com/bitbucket/configure-multiple-ssh-identities-for-gitbash-mac-osx-linux-271943168.html](https://confluence.atlassian.com/sourcetreekb/generate-and-load-ssh-keys-into-sourcetree-with-putty-790629663.html)

It says to use "Tools \> Create or Import SSH Keys". That does not exist in Sourcetree 3.0.15.

There is "Tools \> Add SSH Key..." and I tried that loading a key I'm sure worked before. Not now. Nothing about creating a new key. There is "Tools \> Launch SSH Agent" which does nothing.

I've spent hours and hours trying to solve SourceTree access issues. It should not be this hard.


Answers:
author: minnsey
body: Hi  

The Create or Import button refers to PuTTYGen rather than Sourcetree.  

If you are using PuTTY/Pageant you should, once you have a key pair that is registered with Bitbucket, be able to set in Tools/Options/General tab:  

\* SSH Key: path to your key  
\* SSH Client : PuTTY/PLink  
\* Automatically start SSH agent... : checked  

When Sourcetree starts it should check if Pageant is running and if not start it asking it to load the specified key. If the key requires a password Pageant will prompt you.  

That should then work


Tags: windows
Having Trouble Logging into Bitbucket from SourceTree with Google Authentication
Asked by Joe Lee:

The setup:

MacBook Pro mid-2009

OSX 10.11.6

SourceTree v. 2.5.3

git v2.20.1

Google Authentication with 2FA turned on

The issue:

I can't sign into my BitBucket/Atlassian account through SourceTree using Google. After going through

settings \> accounts \> add... \> connect account \> Log in with Google \> (google email) \> (google password) \> (2FA code) \> "please wait..." (with spinning pin wheel) then usually a blank screen, but once it came back with an error message.

Please advise and any help would be appreciated. Thanks!

-Joe

![Screen Shot 2019-01-29 at 6.33.07 PM.png](/t5/image/serverpage/image-id/44002iF9BFDC85BAF8E2C2/image-size/large?v=v2&px=999 "Screen Shot 2019-01-29 at 6.33.07 PM.png")![Screen Shot 2019-01-29 at 6.27.28 PM.png](/t5/image/serverpage/image-id/44003i2EF5C09EB4E7D04F/image-size/large?v=v2&px=999 "Screen Shot 2019-01-29 at 6.27.28 PM.png")


Answers:
author: bgannin
body: Hi [@Joe Lee](/t5/user/viewprofilepage/user-id/2564111),

For the 3.0 release we changed the OAuth provider setup so it allows users to sign in via their preferred browser. Unfortunately doing this invalidated the ability for users on older releases to add accounts using the prior OAuth configuration within the app. The only alternative to upgrading is to use basic authentication instead. Our apologies for the hassle.

Brian Ganninger  
Principal Developer, Sourcetree

comments: author: Joe Lee
body: Thanks for the explanation and the quick reply Brian! -joe


author: DHSV
body: Basic Auth always says invalid password no matter what I use... even copying and pasting from Chrome saved passwords which is what's automatically used when I log in through the website.


Tags: mac
Cannot login to Sourcetree with bitbucket login
Asked by Aggressor:

I am updating an old computers bitbucket. It was running like 2.0. I updated to 3.0.15.

When I try to login I cannot, it keeps telling me wrong user and password. I tried resetting the password. I used it to login to website, and I used it to login on another computer.

However, every time I try to login on this computer via the prompt that comes up for the Atlassian Bitbucket login it fails. Even when I copy paste the username and password from the website which lets me login.

Here is the error I get with a 100% correct user and password:

Logon failed, use ctrl+c to cancel basic credential prompt.  
remote: Invalid username or password  
fatal: Authentication failed for 'https://\[name\]@bitbucket.org/\[name\]/\[reponame\].git/'

The small login window pops up 5 times then it just gives up. Since this works on another computer and I know the login works, is there a way to debug that this login prompt is working correctly and not using some corrupt cached login data?

Please advise


Answers:
author: Aggressor
body: Solved by updating credentials manager: <https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases>
SourceTree remote connection with GitLab have remote configuration issue
Asked by Jeya:

Hello

I have a issue with sourcetree remote connection with our GitLab server. Using sourcetree version 3.0.12. I have attache pictures which elaborates the issue.

![Pic_1.jpg](/t5/image/serverpage/image-id/43926iCDD24E783570BDC1/image-size/large?v=v2&px=999 "Pic_1.jpg")

![Pic_2.jpg](/t5/image/serverpage/image-id/43927i43645096C4E8ECCE/image-size/large?v=v2&px=999 "Pic_2.jpg")![Pic_3.jpg](/t5/image/serverpage/image-id/43928iC875CD2E1890BC82/image-size/large?v=v2&px=999 "Pic_3.jpg")

Thanks

Jsan


Answers:
author: minnsey
body: Hi  

The *Remote* button will open the repository's home page on its host server, but it can only do that if the repository has been associated with a remote server, e.g. GitHub.com, GitLab.com, Bitbucket.org or a self hosted instance of GitLab etc.  

In order to do that you need an account, Tools/Options/Authentication, for that host server setup in Sourcetree. With that you can then use the Edit button on your 2nd screenshot. That opens a dialog where you can associate the current repository with the host account. Sourcetree is then able to determine the correct URL for the *Remote* button

comments: author: Jeya
body: Thanks for your response. I don't see any difference on the remote ULR and the ULR at sourcetree. My projects repos are able to push/pull without any issue, but only it showing '**!**' on the remote. not sure where is wrong.


author: amazing42
body: This answer helped my to identify ma problem - I have set up multiple remotes, but SourceTree uses not the default remote "origin", but apparently the URL other/second remote configured for this repository. Is there a way I can influence/set the remote URL, which is used when i press this button?


Tags: gitlab
After update to Source Tree 3.0.15 I can not pull data, what does this error (with SSL) mean?
Asked by Taras Radchenko:

After update to Source Tree 3.0.15 I can not pull data, what does this error mean?

![Screenshot 2019-01-29 12.56.18.png](/t5/image/serverpage/image-id/43904iF9F96108FFB88ADF/image-size/large?v=v2&px=999 "Screenshot 2019-01-29 12.56.18.png")


Answers:
author: minnsey
body: Hi   

Can you check your Git version?  

see <https://stackoverflow.com/questions/48920416/getting-fatal-error-at-the-time-of-git-pull-ssl-routinesssl3-get-record>


Tags: bitbucket