youngmon/atlassian-qna huggingface dataset:
Mirroring to online repositoy.
Asked by N. Sujith Joseph Ratnam:

While mirroring to an online repository, it asked for an app password, I entered my setting and created an app password and I entered it. It showed the following error.

! \[rejected\] master -\> master (non-fast-forward)  
error: failed to push some refs to '<https://N_Sujith@bitbucket.org/n_sujith/git-test.git>'  
hint: Updates were rejected because the tip of your current branch is behind  
hint: its remote counterpart. Integrate the remote changes (e.g.  
hint: 'git pull ...') before pushing again.  
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

please help me with this...!


Answers:
author: Syahrul
body: Hi [@N. Sujith Joseph Ratnam](/t5/user/viewprofilepage/user-id/4625428),

Welcome to the community!

I believe the error logs indicate that your local copy of the repositories master branch is being the remote repositories current master branch hence your push was rejected. You need to run ***git pull***first to update your local master branch before pushing your changes.

I hope this helps, please let me know how it goes.

Cheers,  
Syahrul


Tags: bitbucket-cloud

cloud
I'm not getting invite from bitbucket.
Asked by Pushpak Anand:

Hi Team,

I'm not getting invite from Bitbucket to join the project.

I don't have access to repositories. Please help me.

Email address: \<email removed due to privacy reasons\>


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

I confirmed there was no blocker on your address that could be causing a problem to receive our emails.

I have sent you an invitation to one of my repositories and confirmed on our logs that these emails left our servers. I can also see you were able to accept that, so apparently, everything is working as expected now.

With that said, could you ask the admin of the workspace that you were invited to remove the invitation and send you a new one? They can do this by following the next steps:

In case they have invited you to a **specific repository**:

* Access the workspace \> Go to the repo they have invited you to;

* Access the **Repository Settings** \> **User and group access;**

* Click on the "**invitation pending**";

* Select the "**Cancel invitation**" option to remove the invitation;

* Add your email again to send a new invitation.

In case they have invited you to a **group on this workspace**:

* Access the workspace \> **Settings**;

* Access **User groups** \> Open the group they have invited you to**;**

* Click on the "**invitation pending**";

* Select the "**Cancel invitation**" option to remove the invitation;

* Add your email again to send a new invitation.

In case you still don't receive the email, could you please check if there are any quarantined emails on the server?

Please let me know how it goes and feel free to share any additional questions regarding this case.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
REST API: The group name can not be empty
Asked by Matt Kimball:

Good Day!

I'm using Jira Server(v8.5.2) and I'm having an issue removing a user from a group via a Rest call.  
I'm referencing the docs here <https://docs.atlassian.com/software/jira/docs/api/REST/8.13.13/#group-removeUserFromGroup>

Here is my call.

```

curl -D- -u "user:pass" -X DELETE -H "Content-Type: application/json" -d "{""groupname"": ""cmteam"",""username"": ""mkimball""}" "https://jira.abc.com:8443/rest/api/2/group/user"
```

Here is my response.

```

HTTP/1.1 400
X-AREQUESTID: 736x5839x1
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
Content-Security-Policy: frame-ancestors 'self'
X-ASEN: SEN-3227898
Set-Cookie: JSESSIONID=44D609176B08968E51ED9105B4; Path=/; Secure; HttpOnly
X-Seraph-LoginReason: OK
Set-Cookie: atlassian.xsrf.token=B5P1-XI0T-LAL0-AMZA_20a1cac882ea74e58ee4a82993c93_lin; Path=/; Secure
X-ASESSIONID: 1p7zli
X-AUSERNAME: user
Cache-Control: no-cache, no-store, no-transform
Content-Type: application/json;charset=UTF-8
Transfer-Encoding: chunked
Date: Fri, 05 Nov 2021 17:16:03 GMT
Connection: close

{"errorMessages":["The group name can not be empty"],"errors":{}}
```

Why would I be getting this error when I'm supplying a group name? Is there something wrong with the way I am supplying json data? Any advice or suggestions would be greatly appreciated!

Thank you.


Answers:
author: Support Team _Clearvision_
body: Hi Matt

This endpoint requires the groupname and username as query parameters e.g.

```
https://jira.abc.com:8443/rest/api/2/group/user?groupname=cmteam&username=mkimball
```

In your example you could do

```
curl -X "DELETE" -u username:password "https://jira.abc.com:8443/rest/api/2/group/user?groupname=cmteam&username=mkimball"
```

Worth testing this in a test environment first

comments: author: Matt Kimball
body: Thank you for the support! This was the issue exactly.


Tags: bitbucket-server

group

rest

server

user
Import from On Premise DevOps
Asked by shawnatvelocit:

We currently run Azure DevOps on premise and are looking to migrate to Jira/BitBucket in the cloud. It looked fairly straight forward but I can't seem to get BitBucket to connect to my DevOps server to import the GIT repos. I have followed several tickets here and with no luck. I have used both regular creds as well as attempting to use the PAT creds. Does anyone have any experience moving repos? In the end I know I can just export to zip and start fresh but I would like to retain the revision history if at all possible. In case it helps I the version we are running on prem is Dev17.M153.5


Answers:
author: Syahrul
body: Hi [@shawnatvelocit](/t5/user/viewprofilepage/user-id/4624841)  

Welcome to the community!  

If I understand this correctly you wish to import your Git repositories from your OnPremis DevOps to Bitbucket. You have tried using the [Importer tool](https://support.atlassian.com/bitbucket-cloud/docs/import-a-repository/) but you are failing to get the correct credentials?   

If yes, have you tried using the following URL example to import?

```
https://username@<your-domain>/<your git repositories>
```

Make sure the path is following your clone URL path.  

If you still failing to import the repositories another workaround would be to push your bare repositories over to the Bitbucket cloud. You can follow these steps:

1. Create empty repositories in Bitbucket
2. Clone your bare repositories using the following commands

   ```
   git clone --mirror https://<your-domain>/<your git repositories>
   ```

3. Update your bare repositories remote URL to the repositories URL you created on step 1 as following  

   ```
   git remote set-url origin https://bitbucket.org/<Workspacename>/<Repositories-name>
   ```

4. Then run "git remote -v" to check if the URL is updated correctly
5. Push the changes by using "git push", this should push the repositories to Bitbucket.
6. Check the repositories in Bitbucket it should be updated with your repositories

I hope this helps, let me know if you have any additional questions.

Cheers,  
Syahrul


Tags: bitbucket-cloud

cloud

devops

migration
Upgrade firebase-tools to the newer version in firebase-deploy pipe
Asked by max.henash:

Hello.

Please, upgrade firebase-tools to the newer version in the firebase-deploy pipe to support recent features. Currently, the old version results in an inability to set \`minInstances\` config value for firebase functions: <https://github.com/firebase/firebase-functions/issues/968#issuecomment-912187156>


Answers:
author: Igor Stoyanov
body: [@max.henash](/t5/user/viewprofilepage/user-id/4624897) hi. Thanks for your question. We will bump firebase-tools to the new version in the near future.

Regards, Igor.

comments: author: max.henash
body: Thanks.  
Will be waiting for it


author: Igor Stoyanov
body: [@max.henash](/t5/user/viewprofilepage/user-id/4624897) Hi. We released new version of firebase-deploy pipe where firebase-tools bumped to 9.\* (latest minor).

Regards, Igor.


author: max.henash
body: Cool, thanks


Tags: bitbucket-pipelines

cloud

deployment

firebase

google
Unable to access user directory in bitbucket admin center
Asked by Horolin:

Hello,   
We are running bitbucket Server 5.16.0.  
Users are synchronized from an AD and some are in the internal bitbucket directory.  
After deleting a user in the internal bitbucket directory, it is now not possible to display the administration page for configured user directories.  
We have the following error message :

Could not find servlet for: /bitbucket/plugins/servlet/embedded-crowd/directories/list {#toc-hId--1211316715}
-------------------------------------------------------------------------------------------------------------

<br />

My question is how to fix this problem?

thanks in advance  
Best regards  
horolin


Answers:
author: Nic Brough -Adaptavist-
body: I think you may have run into <https://confluence.atlassian.com/confkb/unable-to-access-user-directories-screen-after-deletion-of-an-user-directory-355369112.html>


Tags: active-directory

bitbucket-server

server
hg fetch now discards source information
Asked by Thom Goodsell:

In earlier versions of SourceTree, when I fetched from a branch repo into my main repo, the generated commit said something like "Automated merge with ssh://build//hg/config-6.11" but at some point (maybe in late September) the generated commit started to say "Automated merge with bundle:/var/folders/lm/0rtn02v1545fhxh3thqm33w00000gp/T/SourceTreeTemp.QPZQbN". I prefer the old format (for what I assume are obvious reasons), which I still get if I do a fetch from the command line. Is there some way to get SourceTree to use that format? (Or have I possibly misconfigured SourceTree in some way?)


Answers:
author: KieranA
body: Hey Thom,

Yes unfortunately this was a side-effect of quite a major optimisation we made. Beforehand users would hit pull and see the chances to be pulled, then when hitting "OK" it would re-pull the changes and merge them in. Now when the pull dialog opens up it'll be pulling down changes and putting them into a bundle (this is an hg feature). Instead of re-pulling the changes down we use that bundle file to merge in, which is why it specifies the bundle instead.

Could you open up a ticket on [jira.atlassian.com](http://jira.atlassian.com)for us and then we can review it from there?

Thanks in advance

comments: author: Thom Goodsell
body: Thanks. I found an existing ticket in Jira and voted for it.
Diff only shows minus (-) and plus (+) the first line for .as file
Asked by juworld:

There is a issue with my diff. I can't tell the which lines are changed. It simply tells you that the first line has been removed and added. See screenshot below:

![](../../upfiles/Screen_Shot_2014-01-14_at_7.33.17_AM.png)

What is odd is that when I tried to read the file on bitbucket, it shows up fine.

![](../../upfiles/Screen_Shot_2014-01-14_at_7.31.28_AM.png)

Please advice,

Thanks in advance,

Justin

![](http://flic.kr/p/jbWEzQ)

![](http://www.flickr.com/photos/49241503@N02/11938252626/)


Answers:
author: Norman Abramovitz
body: It is probably either spaces at the end of line or the line terminator was changed.


Tags: diff
Is safe to delete old versions present on 'Application Support' directory?
Asked by dafi:

My \~/Library/Application Support/SourceTree directory contains \~300Mb of older versions.

My SSD is small so 300Mb are precious, can I delete these files safely?


Answers:
author: KieranA
body: Hi dafi,

As long as you only delete the version backups, so in that directory make sure you don't delete the following:

* sourcetree.license: this is your license file which is needed
* hostingservices.plist: this stores your saved hosts
* actions.plist: this stores your custom actions
* browser.plist: this stores what's in your bookmarks

Other items are non-essential, but if you can keep other items around then it may be of benefit to you, i.e. openWindowList (stores which windows are open). You can get rid of the SourceTree backups of the application though, they seem to stick around sometimes which is an issue we have open to resolve.

Hope that helps


author: dafi
body: Thanks for reply, I will delete files taking care of your hint
De-committing versions
Asked by Michael Robinson:

After "Committing" a number of changes from the local database, I tried to push to the main database and got an error message saying "... remote: abort: No space left on device". We have checked the main database and there is plenty of space allocated to this directory.

What can I do to address this?


Answers:
author: KieranA
body: Hey Michael,

I don't know what OS you're using, whether it's Git or Mercurial, or what versions, but based on your description it may be related to this in the Mercurial FAQ: [](http://mercurial.selenic.com/wiki/FAQ#FAQ.2FCommonProblems.I_get_a_.22no_space_left.22_or_.22disk_quota_exceeded.22_on_push)<http://mercurial.selenic.com/wiki/FAQ#FAQ.2FCommonProblems.I_get_a_.22no_space_left.22_or_.22disk_quota_exceeded.22_on_push>

Let me know if that's related, or if that helps in solving your problem and we can go from there if it doesn't.

Cheers

comments: author: Michael Robinson
body: Hi Kieran

Thank you for your response. We are using a Mercurial system. The fis is beyond my technical capabilities so I referred it to our technical people.

As a first step they suggested I clear my /tmp folder. While this seemed to work to start we then had a merge issue, which once fixed we then got the same error message as before.

So the issue is not yet resolved and I still cannot "push". It will have to wait a few weeks now as I have some deadlines to meet and can't keep sending time on this issue. We are jsut about to deploy and market a major update to our system, so we will probably get back to this in two weeks. Sorry if that creates issues for your system.

Thanks again

Michael Robinson


author: Seth
body: You should have your technical people check the temp directory on the computer hosting the main database, not your own computer.

The problem in Kieran's link basically boils down to this: the data you are pushing gets decompressed in the remote's temp directory. If there isn't enough room to unpack it, you get the error. This could be because the directory is full, or because the push is just too big.


author: Michael Robinson
body: Thanks Seth. That was helpful. (Apologies for delay in responding - we had a big launch to get through)

We have checked the remote directory and there is more than enough space.

That means that the Push is too big - what is the maximum size of a Push? We have previously been able to push 50MB files. The problem Push was less than that, but had multiple files organised in folders (total push size was of the order of 20MB).

How do we now go about reloading some relatively large changes? One folder at a time?
How can I tell which git branches sourcetree wishes to push?
Asked by Robert Lupton:

The sourcetree toolbar tells me that I have one push, but the current branch is fully pushed. How can I find out which branch needs pushing (I have git setup to only push the current, which may even be the default these days)?

And yes, I have refreshed things.


Answers:
author: Seth
body: Push and pull statuses should be indicated per branch in the Branches tree in the left panel.

comments: author: Robert Lupton
body: Where is that indication? I don't see it in this screenshot

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


author: KieranA
body: Hey Robert,

The 'price' folder isn't expand in your sidebar, it might be in there.

Cheers


author: Seth
body: Sounds like the right place to me as well.


Tags: push
Migrate SourceTree
Asked by Szab? L?szl?:

Hey,

I have to reinstall windows, but I have a lot of projects / libraries in sourcetree. How can I migrate the whole sourcetree with the projects and settings without downloading them again from one windows to another?

Thanks!

Laci


Answers:
author: Seth
body: You can migrate your repositories (working copy, revision history, remote configs, etc) by copying the root of each to the temporary storage location and (after the install) back to your machine.

!!Make sure the hidden .git directory is included!!

I do not know how or if you can migrate SourceTree preferences, but you'll have to re-download and install the program either way, just like any other programs that aren't pre-installed.

If you aren't able to migrate SourceTree preferences, you can re-add your repos to SourceTree using "Add Repository \> Add Working Copy".


Tags: migration

windows
Cloning from Bit Bucket in Source Tree
Asked by Biswadeep Datta:

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

I am getting the above response when I tried to clone my repository from Bit Bucket. What is wrong with the above url? I am using Source Tree for Windows 7.


Answers:
author: Jeff Thomas
body: Seth is correct, for the git clone command, you'll want to use SourceTree's Terminal because it doesn't look like you have Git installed on your machine outside of SourceTree.

For the "ssh bitbucket.org" command, you'll want to use the command prompt.


author: Seth
body: Can't help but point out that it should be "git clone", not "git coone".

Assuming that was just a typo in the post, make sure you are running your git commands via SourceTree's "Terminal", not a raw Windows command prompt.


author: Biswadeep Datta
body: Please tell me how do I do this. I also tried by remiving the user name but nothing happens. No errors are shown by specifying the git coone command in the COmmand Prompt. It says unrecognised command.


author: Jeff Thomas
body: You may also need to add the [bitbucket.org](http://bitbucket.org)RSA key fingerprint to your known hosts, you can do that with "ssh bitbucket.org"


author: Jeff Thomas
body: The steps you're using should work, but you should be prompted to authenticate to Bitbucket to clone the repository. If you were to remove the username from the URL ([](https://bitbucket.org/sourish_ghosh/project_management.git)<https://bitbucket.org/sourish_ghosh/project_management.git>) and try to clone that, what happens?

Also, if you open up command prompt and try the git clone command, do you get any additional errors?

```
git clone https://biswadeep_datta@bitbucket.org/sourish_ghosh/project_management.git
```


author: Biswadeep Datta
body: I am not prompted for authentication when SourceTree is checking the source. These are the steps followed by me when working with SourceTree:Step 1: Open BitBucket and go to my repository.

Step 2: From my repository, I click on the Clone button.

Step 3: In the Clone window, I click on "Clone in SourceTree"

Step 4: SourceTree opens with the window (screen shot sent)

Please let me know if I am doing anything wrong in the above procedure.


author: Jeff Thomas
body: Are you prompted to authenticate when Sourcetree is checking the source?


Tags: source

windows
Sourcetree Not Working on Windows 8.1
Asked by Michael Eshom:

I just got a new laptop and had previously been using SourceTree on Windows 7 without a problem. However, I cannot make it work on Windows 8.1 - it pops up with a blank dialog and another blank "Welcome" dialog. If I click somewhere within the "Welcome" dialog, it either goes away or reappears depending on where I click, and eventually I get a message saying that Sourcetree "has stopped working". I love the program and want to continue using it. On your homepage you show it running on Windows 8. What's the problem?


Answers:
author: Stef Green
body: Hi Seth Foss,

I also have this problem. I have tried to re-install 3 times now, and still just says "Has stopped working" almost instantly after launching it. So it's not minor UI problems, the problem is that it crashes and is impossible to use.

Any suggestions?

comments: author: Seth
body: I haven't had a similar problem, but others have. This one found an answer: [](/questions/286989/sourcetree-does-not-run-on-windows-8-1)<https://answers.atlassian.com/questions/286989/sourcetree-does-not-run-on-windows-8-1>

Try searching this site for "sourcetree crash", and skip over any that mention OSX or Sourcetree versions 1.6+ (Windows SourceTree version is 1.5.x as of May 2014).


author: Stef Green
body: Thanks, I tried installing new intel drivers - but unfortunately it didn't help :(

Is there someway I can offer more information, can I find an output.log somewhere? I tried to "open file location" but I can't find any logs, I might be searching the wrong place?


author: Seth
body: It works fine for me on Windows 8.1.

Go to Personalization and check your themes. Having a unique or broken theme has been known to cause minor UI problems in SourceTree even though Windows itself works fine (by "broken", I mean the background image is displayed as a black rectangle instead of whatever your background actually is).

If that doesn't work, try re-installing?
SourceTree: extremely annoying OSX KeyChain prompt...
Asked by dcunited001:

So, i'm a little paranoid. I refuse to use the OSX keychain for anything serious. It's basically a convenient collection point for all your private information on a Mac and it's had security problems before.

However, everytime I open SourceTree, the program decides to prompt me millions of time's for to unlock my key via my keychain. Push/Pull using this key works without entering the password, but nevertheless, SourceTree endlessly prompts the KeyChain app to display a message box asking for the password. It doesn't matter what I type into the KeyChain prompt, right or wrong. It just continually asks me for the key password.

Also, I don't use SourceTree to push/pull. I love the product for viewing a repo and staging files or hunks of changes.

Is there any way to turn this off?


Answers:
author: Seth
body: I'm a Windows user, so I can't speak to Keychain, but you may want to check your Options to see if Sourcetree is set to "Check default remotes for updates every X minutes". If that is on, you may be able to reduce unnecessary prompts by turning it off.

comments: author: dcunited001
body: So far, this is working well. Thank you!
Uncommitted changes in source tree with github
Asked by RV SW:

I am a newbie at sourcetree and am using it with github. When I look at the master branch, I see a section uncommitted changes at the top. What is this for? I didn't see any information either in git/github on that. I didn't find any documentation in source tree anyway. Please provide inputs, if any. Thanks


Answers:
author: Seth
body: When you make changes to your working copy (the files you can edit), SourceTree shows those in the chart as "Uncommitted changes" on whichever branch you have checked out. You won't see that item in Github, because Github has no knowledge of your working copy.

If you switch to the "File Status" tab, you'll see that you have "Staged" or "Working Copy" changes. These need to be committed to your repository before they will be accessible on Github or by anyone who is pulling from your repository.