youngmon/atlassian-qna huggingface dataset:
Recovering access to old account
Asked by Eugene T:

I'd like to recover access to my old Bitbucket account, which had a private tech demo I'd like to revive.  
I last used this account when Bitbucket still had its username based account system separate from Atlassian. The username in question is simply the domain name of my email (without the TLD). Following other suggestions I created this account with an email that had previously been associated with that account. But when I go to register a username, it says "username already in use" instead of giving me control.  
Is there anything I can do to recover this account?

Thank you


Answers:
author: Brant Schroeder
body: [@Eugene T](/t5/user/viewprofilepage/user-id/5160098) Welcome to the Atlassian community

I will escalate this to Atlassian so their support can take a look at the account.

comments: author: Patrik S
body: Hello [@Brant Schroeder](/t5/user/viewprofilepage/user-id/769100)

Thanks for bringing this to our attention :)

Hey [@Eugene T](/t5/user/viewprofilepage/user-id/5160098)

Welcome to the community!

Since we will need you to share some private information to investigate your old account, I have created an internal support ticket for you. You should soon receive an e-mail with the link to the internal ticket in the e-mail of your community account. In case you don't receive it, please let me know so I can share it here.

Thank you!

Patrik S


Tags: atl-rvw

bitbucket-cloud

cloud
Can't see Synchronise button for a forked repo
Asked by Steve Doig:

Hi,  

Reading [this article](https://confluence.atlassian.com/bitbucketserver/keeping-forks-synchronized-776639961.html), I see there is supposed to be a Synchronise button under **Settings** \> **Fork syncing** tab for the forked repository, or on either of the **Source** or **Commits** tabs for a repository:

At <https://bitbucket.org/username/forkedreponame/src/main/> I see a **Repository Settings** (not Settings) button, but no Fork syncing under Repository Settings.

Under either the Source or Commit tabs, I see no Synchronise button either.

I only have Read access to the main repo.

I want to sync my fork with the main repo, so my fork has the latest changes.

I am only using my fork for learning NextJS at this stage, but will probably have Write access to the main repo in the future.

Do I need Write access to sync my forked repo with the original repo?

Thanks


Answers:
author: Steve Doig
body: Damn it. Found **repository settings** on the right, and the Synchronise button.


Tags: bitbucket-cloud

cloud
bitbucket & git-flow
Asked by HALL 9000:

Hello,

Do you have courses to learn how to use git-flow in bitbucket ?

kind regards


Answers:
author: Mikael Sandberg
body: Hi [@HALL 9000](/t5/user/viewprofilepage/user-id/5159912),

Welcome to Atlassian Community!

Have a look at this tutorial, [Gitflow Workflow](https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow). You will also find a lot of other interesting tutorials and articles at <https://www.atlassian.com/git>


Tags: bitbucket-cloud

cloud

git-flow
BUILD FAILURE mvm
Asked by Edson Fernandes Cunha:

Hello, I have a pipeline that I run two to three times a day, but at certain times it starts to give an error even without having made any changes.  
I have already updated the plugins according to the link shown in the error:  
<http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException>  
But still the same error remains.![Capturar.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/243222i003DF82F7726B93A/image-size/large?v=v2&px=999 "Capturar.JPG")

I'm sending an image where there are several successful pipelines from the same branch.

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


Answers:
author: Theodora Boudale
body: Hi [@Edson Fernandes Cunha](/t5/user/viewprofilepage/user-id/5143373) and welcome to the community.

You can check the following page for troubleshooting steps, section "Scenario 1: Builds were successful earlier, but started failing recently":

* <https://confluence.atlassian.com/bbkb/troubleshooting-bitbucket-pipelines-1141505226.html#TroubleshootingBitbucketPipelines-scenario1>

This page includes possible causes for a build failure and the things you can check.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Is deleting/recreating a branch easiest way to remove large files in history?
Asked by Steve Novotny:

I know that reset can be used to backup to previous commits, but is deleting and recreating the branch a quicker and easier way to reduce the size of a branch with large files scattered throughout the commit history?


Answers:
author: Mikael Sandberg
body: Hi [@Steve Novotny](/t5/user/viewprofilepage/user-id/5159880),

Welcome to Atlassian Community!

Branches are just pointers to different parts of the history and removing a branch will have no effect on the size of the repository, since the history of the large files is still in it. The only way to remove large files from the history is to clear the history out. You can read more about in this [KB](https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/).

comments: author: Steve Novotny
body: Thank you. That's what I feared.


author: Steve Novotny
body: I'm assuming if I want to back up to before the big files were pushed, I do the following:

git branch \<keeper\>

git reset --soft \<commit id before big push\>

git push --force

git merge --ff-only \<keeper\>

git branch -d \<keeper\>


author: Mikael Sandberg
body: Yes, that is correct.


author: Steve Novotny
body: Thanks. Just to verify: this will only affect the branch I am working on; it won't affect the main branch. Is that correct?


author: Mikael Sandberg
body: As long as you have not merged the push to the main branch then you will be good.


Tags: bitbucket-cloud

cloud
Script to pull a local copy of all repos in a workspace
Asked by Chris Mann:

Being forced to move up to the cloud bitbucket offering, I want a script to ensure all repos from a cloud bitbucket workspace are regularly pulled to our local server where we can run a full backup.

Can anyone help provide a (windows) script to do this? Or a script we could run on our local bamboo build server to ensure a regular local copy is retained.

It would need to pull all repo's based on the workspace and I would prefer not to have to manually add a new pull each time a new project or repo is created.

Thanks!


Answers:
author: Chris Mann
body: Thanks for the feedback.  
For now, I have gone with a slightly different tool:

[SCM Backup: SCM Backup (scm-backup.org)](https://scm-backup.org/)

Seems to do what I need (for now) although I am starting to realise that like most remote hosting, having to move our Bitbucket, Jira and Confluence to the hosted cloud offering is definately NOT cheaper than self-hosting!


author: Maria Korolenko
body: Hi Chris!

To run Bitbucket backups, you can do the following:

1. Using `git clone` Command-line Script. To use this command, you must have Git installed on your terminal. You can read more about it [here](https://rewind.com/blog/back-up-and-restore-repositories-bitbucket-cloud/).

2. You can use [bbbackup](https://github.com/OpenReplyDE/bbbackup). It's used as a backup solution for cloud-to-local repository cloning. It's written in Python, which means to use it you need to have [Python installed](https://realpython.com/installing-python/)) on your machine.

3. You can use third-party automated and compliant backups like [Rewind](https://rewind.com/products/backups/bitbucket/) that are [compatible with Atlassian's shared responsibility model](https://www.atlassian.com/trust/security/security-practices#encryption-of-data).


Tags: bitbucket-cloud

cloud
I can't login to bitbucket
Asked by frank doyle:

Getting the "We couldn't log you in" issue described here: <https://community.atlassian.com/t5/Bitbucket-questions/Stuck-in-quot-We-couldn-t-log-you-in-quot/qaq-p/1660635>  

It looks like I do have an old account, might have been deactivated.


Answers:
author: Patrik S
body: Hey [@frank doyle](/t5/user/viewprofilepage/user-id/5159671) .

Welcome to the community!

I checked internally that your account was in an inactive state due to a long time with no login. I went ahead and set it to active again.

Could you please try again and let me know how it goes?

Thank you, [@frank doyle](/t5/user/viewprofilepage/user-id/5159671) !

Patrik S


author: Riley Venable
body: You can try to reset your password via the Atlassian reset form: <https://id.atlassian.com/login/resetpassword>.

comments: author: frank doyle
body: I have done this. I continue to receive the message.


Tags: bitbucket-cloud

cloud
Can you delete a branch with uncommitted pull requests?
Asked by Jean Hilaire:

i have some old branches in my team's repository that i'm finally cleaning up, however, some of these branches and commits that haven't been merged into the master branch yet. these are so old that i just want to delete them with no merge. is this possible?


Answers:
author: Patrik S
body: Hello [@Jean Hilaire](/t5/user/viewprofilepage/user-id/5159483) ,

Welcome to Atlassian Community!

You can definitely delete branches in the UI by accessing the **Branches** option in the left panel, clicking on the three-dot icon (Action column) in the line of the branch you want to delete, and selecting **Delete.**

However, if the branch to be deleted is the source or destination branch of an Open pull request, the Delete option will be greyed-out and you will not be able to delete it while the Pull Request is still in the Open state.

The workaround in this case, as you don't want to merge those old Pull requests anymore, is to access the Pull Request page and filter for any PRs where the branch you want to delete is either the source or destination branch. Then you can open each of the PRs, click on the three-dot icon and select **Decline.**This will close the Pull request with the state Declined. Once all the open PRs of a given branch are declined, you should be able to delete that branch in the UI as usual.

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

Thank you, [@Jean Hilaire](/t5/user/viewprofilepage/user-id/5159483)

Patrik S

comments: author: Jean Hilaire
body: Thank you! The workaround has worked in some way. We've had to create a new branch, committing the code and pushing this out to the new branch and then ultimately delete the old branch.
Sourcetree line endings for windows
Asked by Kevin Spredemann:

My Git configs set core.autocrlf=input.

I have it set this way in both "C:\\ProgramData\\Git\\config" and "C:\\Users\\myname\\.gitconfig

When I clone a repo from the cmd line, the line endings are not being changed, as expected.

But when I clone a repo in sourcetree, it is changing the line endings.

I do not want to set this on an individual repo basis either (and have not).

Any suggestions?


Answers:
author: Yusuf Khasbulatov
body: use

```
git config --global core.autocrlf auto
```


author: minnsey
body: Hi Sourcetree should only attempt to set the autocrlf setting during installation and it will write it to the global config if it does.  

If you run the following from the Terminal in Sourcetree  

\>git config --global -l  

what setting does it show for autocrlf?

comments: author: Kevin Spredemann
body: It shows:

core.autocrlf=true


author: Kevin Spredemann
body: Where is it pulling that from? During install, I believe I selected the "input" choice.


author: minnsey
body: From C:\\ProgramData\\Git\\config I believe.inpout  

*I selected the "input" choice*   

When installing Git or Sourcetree? Sourcetree offers to set it to **true** during install, but there is no option to set it to **input**
Can not Login into Source Tree when I clone from responsity ?
Asked by v?n l?c th?n:

When I clone code, although my user name and my password are correct.But I can not login in Source tree ?![1.png](/t5/image/serverpage/image-id/31638iF0314B90E37F384E/image-size/large?v=v2&px=999 "1.png")![2.png](/t5/image/serverpage/image-id/31639i9683701FE8F8462E/image-size/large?v=v2&px=999 "2.png")


Answers:
author: minnsey
body: I've done some more testing. I can reproduce similar behaviour if I'm using a Git install that includes a broken Git Credential Manager for Windows (GCMW), essentially v1.16.1 and v1.16.2.  

Sourcetree can detect the broken versions of Git Credential Manager and force the use of a working copy, v1.17.1, using the following parameters with Git calls  

```
-c credential.helper= -c credential.helper="C:/Users/mminns/AppData/Local/ATLASS~1/SOURCE~1/GIT_EX~1/GIT-CR~1.EXE"
```

<br />

However I suspect this override isn't being carried through to git-lfs which is then calling Git without the overrides and uses the broken Git Credential Manager which fails to authenticate.

Until the fixed version of Git Credential Manager is shipped with a new Git for Windows release which is bundled with a new Sourcetree release please use the following work around.  

**Work Around**

* Install a standard copy of Git 2.18 from <https://gitforwindows.org/>
* Install Git Credential Manager for Windows 1.17.1 <https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases/tag/v1.17.1>
* Switch Sourcetree to use the installed Git 2.18/GCMW 1.17.1 in the *Tools/Options/Git* tab and click the *Git version/System* button

comments: author: Dave Lucas
body: Thx, this helped with the same issue.


Tags: bitbucket
Is there way to put parallel in stage?
Asked by Eunbi LEE:

I want to put several steps in stage and makes them run in parallel

For example,

there is a, b, c step in X stage,

d, e, f step in Y stage,

and I want that X stage and Y stage run in parallel.

Is it possible or is there a way to do that?


Answers:
author: Erez Maadani
body: Hey [@Eunbi LEE](/t5/user/viewprofilepage/user-id/5158450)

According to <https://support.atlassian.com/bitbucket-cloud/docs/stage-options/> - Parallel stages are not supported.

![Screenshot 2023-03-01 at 22.17.28.png](https://community.atlassian.com/t5/image/serverpage/image-id/243247i2697DDAC603DE712/image-size/large?v=v2&px=999 "Screenshot 2023-03-01 at 22.17.28.png")

You can either:

1. Merge the steps of each stage into one step, and then run the two new steps in parallel.
2. Use Rest API to trigger two pipelines in parallel. See this answer: <https://community.atlassian.com/t5/Bitbucket-questions/Re-Multiple-Pipelines-for-multi-project-monorepo/qaq-p/1288739/comment-id/51281#M51281>

Personally, I would go with option #1.

comments: author: Patrik S
body: Hey [@Eunbi LEE](/t5/user/viewprofilepage/user-id/5158450) ,

Welcome to the Community!

As correctly stated by [@Erez Maadani](/t5/user/viewprofilepage/user-id/5018344) , parallel stages are currently not supported in Bitbucket Pipelines. However, we already have a feature request opened to implement this functionality, which you can access using the following link :

* <https://jira.atlassian.com/browse/BCLOUD-22215>

I would suggest you to add your vote there, since this helps both developers and product managers to understand the interest. Also, make sure you add yourself as a watcher in case you want to receive first-hand updates from that ticket. Please note that all features are implemented with [this policy](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) in mind.

Thank you, [@Eunbi LEE](/t5/user/viewprofilepage/user-id/5158450) !

Patrik S


author: Eunbi LEE
body: Dear[@Erez Maadani](/t5/user/viewprofilepage/user-id/5018344) , [@Patrik S](/t5/user/viewprofilepage/user-id/4603309),

Thank you for your respond !


Tags: bitbucket-cloud

cloud
Using Sourcetree with GitSwarm
Asked by sjcarroll:

Hello -

I used Sourcetree before at a previous company when our source was on github.com. However at my current company we've started using GitSwarm and have our source stored on an internal URL (for example: gitswarm.company.com). Is there a way I can use Sourcetree as the GUI on top of these repos and if so, how can I do this? When I went to add a remote repository, it didn't seem like I could do this.

- Steve


Answers:
author: minnsey
body: Hi  

You can use Sourcetree with any Host, you just don't get the REST interactions, e.g. listing remote projects, links to creating PRs etc.  

If you have the clone URL for your repo you should be able to clone through the New Tab/Clone panel. Alternatively you can clone using the command line Git and then use New Tab/Add panel to create a Sourcetree bookmark for the repository.   

The above information is for Sourcetree for Windows but the principles apply to both windows and macOS versions.

comments: author: sjcarroll
body: Ah, I was under the impression I had to somehow add my account to SourceTree before I could clone the repositories. But as long as I have my SSH key added to my workstation and assigned in GitSwarm, SourceTree will pick that up and allow me to clone and then later commit, push, all that git goodness?


author: minnsey
body: In principle yes.  

Just make sure your SSH key is loaded locally. In windows this means adding it to openSSH/ssh-agent or PuTTY/Pagaent depending on your settings.


author: sjcarroll
body: Thanks Michael!
Version control of oracle forms
Asked by shehzad ali:

Hi,

i download and install the source tree in my local machine (windows10).i start working by creating a reposiotry in my locaal machine and create branches blah blah.it is working for me.

now i want to work with my server. in my local machine i map my server drive and create repository using source tree . when i am staging any file and commit it give me error .

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks -c credential.helper= -c credential.helper="C:/Users/SHAHZA\~1.IJA/AppData/Local/ATLASS\~1/SOURCE\~1/GIT_EX\~1/GIT-CR\~1.EXE" add -f -- NewForm.fmb  
error: unable to write sha1 filename .git/objects/1b/f414c381be3da6ad476542fa731cab048c0d61: Permission denied  
error: NewForm.fmb: failed to insert into database  
error: unable to index file NewForm.fmb  
fatal: adding files failed

Completed with errors, see above.


Answers:
author: minnsey
body: It looks like you don't have write permissions to your shared drive?

comments: author: shehzad ali
body: my drive is on server like (192.168.blah.blah) and drive is secured with username and password.

how can we pass credentials also ?


author: minnsey
body: I don't think you can, Git and Sourcetree will assume write access already.


author: shehzad ali
body: so how can we work with our network environment ?


author: minnsey
body: Do you not use the credentials when you map the drive? So giving you and your apps write access?  

If I've misunderstood perhaps you can provide some more details about your setup.
Edit Hosting Account error of "unauthorized".What i'm doing wrong?
Asked by Volodymyr Karpintsov:

I am doing this step and getting this error.(Screen attached)

3. Add your account and select **SSH** as the **Preferred Protocol** . If you don't connect your account during set up, click **Remote** to open the **Remote repositories** page and click **Add an account** .![unauthorized.jpg](/t5/image/serverpage/image-id/31537i549B5818771A0FF5/image-size/large?v=v2&px=999 "unauthorized.jpg")


Answers:
author: Mike Corsaro
body: Hello! Your username looks like it might be wrong. Could you try switching "Authentication" from "Basic" to "Oauth"?


Tags: bitbucket
Unable to log in Bitbucket on Sourcetree. Directs to Bitbucket Website.
Asked by njohnsonihopkc:

I'm using the latest version of Sourcetree (2.7.6 as of this post) and I'm trying to log in my Bitbucket account in **Preferences\>Account** using OAuth. It brings up the login page and I log in with my Google Account. It then logs into the Bitbucket website within the window (shown in the attached screenshot). And that's it. I even tried logging in with just the Bitbucket login and no Google. Did I miss something or is this perhaps a bug?

Thanks

![Screen Shot 2018-09-05 at 4.34.19 PM.png](/t5/image/serverpage/image-id/31505i3DDB7C7B5CC80646/image-size/large?v=v2&px=999 "Screen Shot 2018-09-05 at 4.34.19 PM.png")


Answers:
author: Manju
body: We have fixed this issue and is available to try on the latest public beta available for [download here](https://product-downloads.atlassian.com/software/sourcetree/beta/Sourcetree_3.0b5_196.zip?_ga=2.33948321.1864480005.1536590711-1178943601.1520311947).


Tags: bitbucket

bitbucket-cloud

cloud

mac
How to resolve Javascript Load Error during sourcetree startup
Asked by Robthebuilder:

I am on step 2 of setting up sourcetree "Register account" and received the following error dialogue:

"Log in with Atlassian account

We tried to load scripts but something went wrong.

Please make sure that your network settings allow you to download scripts from the following domain:

**<https://aid-frontend.prod.atl-paas.net/atlassian-id/front-end/2.6.22>"**

I would really appreciate help resolving this. I have turned off adblocker for the site and added the program to windows firewall. Downloaded via Chrome.


Answers:
author: minnsey
body: Hi  

Registering Sourcetree for Windows 2.x using Atlassian account currently relies on Internet Explorer underneath the hood, it is a WPF dependency.  

Version 3.0.0, currently in beta, will switch this to use Bitbucket/OAuth for registration and remove this IE dependency.  

For now, essentially, if you can login to <https://id.atlassian.com>, using IE you *should* be able to register.  

The best advice as of today for registration webview issues with IE:

1. open Internet Explorer
2. open the Developer tools, f12
   1. set the Browser Mode 10
   2. set the Document Mode Standards
3. open Cog/Internet options
   1. ensure the following settings are enabled
   2. Misc/Access data sources across domains
   3. Misc/Allow META_REFRESH
   4. Scripting/Active Scripting