youngmon/atlassian-qna huggingface dataset:
How can I see all parameters for a REST API resource?
Asked by Jonathan Ghellere:

Hello,

I'm scripting some bitbucket DC calls to automate some of our work, like for instance the creation and configuration of a repository.

I've found this documentation here <https://docs.atlassian.com/bitbucket-server/rest/7.21.0/bitbucket-rest.html#idp175>

But I'm having a hard time to find the parameters/options/objects I can use in a request body, for instance, to create a repo I can use the following json body:

    {    "name": "My repo",    "scmId": "git",    "forkable": true,    "defaultBranch": "main"}

But, there are more parameters than that, right? Like the *description*.

    {    "name": "My repo",    "scmId": "git",    "forkable": true,    "defaultBranch": "main",
        "description": "aaa bbb my desc"}

There's any documentation or some place where I can see all the parameters I can send in a json body?

Thx!


Answers:
author: David Bakkers
body: Hello [@Jonathan Ghellere](/t5/user/viewprofilepage/user-id/4894655)

What happens when you try to create a new repository while providing the description parameter in the body of the request?

comments: author: Jonathan Ghellere
body: It works.


author: David Bakkers
body: Then it seems like you've found an omission in the documentation.

Send that feedback to Atlassian to have the *description* parameter included in the example for that REST API endpoint.


author: Jonathan Ghellere
body: Hye David, thx for you contribution.

Actually we have more parameters that are not there in the documentation. My question is not related to the omission but where I can get a list of all parameters.

Creating the repo is only the beginning, I would like to automate the branch config, groups and other stuff..   
A complete API documentation would be awesome. There's any anywhere?


Tags: bitbucket-server

rest-api

server
Commits Are Missing From Master Branch
Asked by Amal Dev A S:

Hi,

Yesterday I have noticed that the latest commits are missing from the master branch. But the repo has the latest updated code. I don't feel any issues regarding missing of latest code changes. Only the commits are missing from the repo.

Thanks,

Amal Dev A S


Answers:
author: Rob van der Lee
body: I don't think this issue is related to Bitbucket. From what I understand is that you are missing some commits in the remote side (Bitbucket). How did you verify that the commits are missing from your master branch? Are they present in your local repository? There is little information here to help you further.

For instance, what does \`git push\` tell you?
Can't add my ssh public key id_rsa.pub to bitbucket
Asked by TerrenceRao:

After I did that. there is a error tips:

Someone has already added that key as an access key to a repository.

And I don't know the reason and details.

thanks in advance.


Answers:
author: Caroline R
body: Hi, [@TerrenceRao](/t5/user/viewprofilepage/user-id/2046194), thank you for reaching out to Atlassian Community.

As we will need to know the public ssh key to further investigate this case, I have created an internal ticket for you using the email of your community account, so you don't have to share this information here.

You should have received an email with a link to the support ticket. Just in case you haven't received it, please feel free to let me know and I can post the ticket URL here. The ticket will be visible only to you and Atlassian staff, no one else can view its contents even if they have the URL.

Please feel free to let me know if you have any questions.

Kind regards,  
Caroline


author: Rob van der Lee
body: Bitbucket only allows for the SSH pub keys to occur once. They have to be unique. This means that it is highly likely that this key has been added to another account.

Most people run into this when trying to add their work/personal/deploy key to the opposite or multiple accounts. It is best practice to create seperate keys for those accounts.

However, there is not enough information in your post to help you further. The problem you describe has been posted before though. A quick search through the forums gave me some of the following results:

* <https://community.atlassian.com/t5/Bitbucket-questions/Problem-quot-Someone-has-already-added-that-key-as-an-access-key/qaq-p/1851681>
* <https://confluence.atlassian.com/bbkb/someone-has-already-registered-that-ssh-key-338365482.html>

I hope these will help you solve your problem.


Tags: bitbucket-cloud

cloud
Authentication failed form Bitbucket cloud
Asked by MDAUTOMATISERING:

I use Sourcetree and bitbucket.

I created an SSH key and installed it in Bitbucket.

Trying to push I stille get an authentication error:

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks push -v --tags origin master:master  
Logon failed, use ctrl+c to cancel basic credential prompt.  
remote: Bitbucket Cloud recently stopped supporting account passwords for Git authentication.  
remote: See our community post for more details: <https://atlassian.community/t5/x/x/ba-p/1948231>  
remote: App passwords are recommended for most use cases and can be created in your Personal settings:  
remote: <https://bitbucket.org/account/settings/app-passwords/>  
fatal: Authentication failed for '<https://MYNAME@bitbucket.org/MYNAME/amsys-xe10.git/>'

<br />

Pushing to <https://MYNAME@bitbucket.org/MYNAME/Source.git>  
Completed with errors, see above.

How to solve this?


Answers:
author: Ben
body: G'day!

Based on the output you have provided, it appears that you still have HTTPS included in your gitconfig for the remote upstream repository.

If you are intending on using HTTPS, you will need to configure an [App Password](https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/), then update your remote URL to include this App Password:

```
git remote set-url origin https://USERNAME:APP_PASSWORD@bitbucket.org/username/reposlug.git
```

Else, if you are wishing to use SSH instead to clone/push/pull, please follow our documentation here:  
<https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/>

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
How to change my github username and password
Asked by youye:

???.png

When I want to clone an origin repository ,at he first time Iinputed the wrong username and password. So I want to chang ,but I don't know how to do this?And the username and password is different from the username of my github acccount .  
[](https://community.atlassian.com/t5/Sourcetree-questions/How-to-change-my-github-username-and-password/qaq-p/258764?attachment-id=7058){#link_1169408093ef50}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/8220/1/%E6%97%A0%E6%A0%87%E9%A2%98.png){#display_1169408093ef50_0}


Answers:
author: SDoig
body: Go to Tools \> Options \> Authentication \> Saved Passwords  

Either edit your existing username to enter a new password

or Delete your existing username and add a new username password combination.

comments: author: Mickey Kocic
body: don't see an option to add a new username and pasword, just to Edit and Delete.

During install my Git authentication failed because I mistyped the Git username and there was no way to change that, so I just quit installation and now the software is broken.
SourceTree refreshing repo gets out of memory error
Asked by Guiboune St-Martin:

So I have a large repository with large files in it. I have been working on a few things in my local branch for the past few days and just decided today to push everything. Unfortunately, opening up SourceTree gets me an out of memory error and it doesn't show my local changes. I tried changing a few memory allocation sizes in the config files without luck. What am I doing wrong ? Something I can do ?


Answers:
author: Guiboune St-Martin
body: Doing a manual "git add" + "git commit" command line fixed the problem.


author: Seth
body: Depending on where you're pushing your repo, you might see if Git LFS (Large File Storage) might help.
Where can I find a document that describ the function in Source Tree
Asked by Xavier Ollat:

New to Source tree I need to know what all the menu do, some are self explaining but other are not strait forward and there is no help describing the functionality


Answers:
author: Seth
body: There is no such document, unfortunately.

If you understand Git, then 90% of the functions are self explanatory: <https://git-scm.com/book>

If you do understand Git and don't understand a function in SourceTree, search for and/or ask specific questions here.
Partial pull request in SourceTree?
Asked by Chris Crowley:

I'm working in a forked repository -- a new project based on a basic application framework. I've set up an upstream remote to the original repository so that I can easily pull down changes from the framework. But pushing minor changes back up has me struggling a bit.

How can I create am upstream pull request for just a portion of the code base?

I can't see how to do that without trying to push my entire project back upstream. I suppose I could (should?) make all such changes in a branch of the *upstream repository*, and then sync them down into my project, but that workflow is a bit unwieldy. What's the best practice here?


Answers:
author: Tim Crall
body: I think your proposed workflow sounds a lot cleaner even if it is unwieldy. You could probably achieve your goals using git and a separate branch for the changes you want to push back to the original project, using careful use of the git cherry-pick command to put only those changes on to the branch you push back up. But I think you'd probably have to go to the git command line for the cherry-picking, I'm not sure that functionality is supported in SourceTree. And you'd have to be careful to select only those commits that made changes to the framework that you wanted to share (and be consistent about making those commits distinct from commits introducing code related to your new project)

comments: author: Chris Crowley
body: Thanks, Tim. SourceTree does have a "cherry pick" function, but I've never played with it. I suspect diff'ing my two work dirs to copy over tweaks would be easier than figuring out that feature.


Tags: bitbucket

git
Installation Problem
Asked by eneskoroglu:

When i try to install i got a message (Could not access network location Atlassian\\SourceTree.) and can not install application.


Answers:
author: eneskoroglu
body: Any solution?

comments: author: 105349
body: Hi Enes,

Unfortunately, I don't have any other possible solutions.

I suggest at this point that you contact Atlassian support directly:

[Atlassian Support](https://support.atlassian.com/customer/servicedesk-portal)

They'll likely be able to help you further!


author: eneskoroglu
body: Screen Shot 04-19-16 at 04.17 PM.PNG  
[](https://community.atlassian.com/t5/Sourcetree-questions/Installation-Problem/qaq-p/28264?attachment-id=1293){#link_116940e0151454}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/836/1/Screen%20Shot%2004-19-16%20at%2004.17%20PM.PNG){#display_116940e0151454_0}


author: eneskoroglu
body: Any idea?

comments: author: 105349
body: Hmmmm... Do you have .NET 4.5 installed on your system? That's a requirement for SourceTree, and can cause all sorts of installation problems.

Also, just on the off chance, are you running Windows inside Parallels on a Mac?


author: eneskoroglu
body: 4.5.1 .net Framework installed on my machine and i have a physical (not virtual) machine Win 7 Professional 64bit installed.

For a time ago I had installed sourcetree and while i was trying to update i started to get this error. Then uninstalled SourceTree but now i can not reinstall it ![sad](/html/@C495B4504065515364EB1894F812B34C/images/emoticons/sad.png "sad")


author: eneskoroglu
body: I have tried it in work network and via mobile hotspot and result is same.


author: 105349
body: Hey Enes!

Are you installing SourceTree in an offline environment? Unless I'm mistaken, that functionality was removed post 1.8.x.

That said, this Answer looks to have a workaround:

<https://answers.atlassian.com/questions/37039953>

Good luck!
Beyond Compare 4.1.5 (64-bit Edition) stopped working as Externa Diff Tool
Asked by bvallee:

We installed yesterday "Beyond Compare 4.1.5" (64-bit Edition) on Windows 10 Pro (Version 10.0.10586). In the Options Window of "SourceTree" 1.8.3.0 (under tab "Diff"), we set the External Diff Tool to: "Beyond Compare", but we kept the Merge Tool to: "System Default". It worked fine yesterday but not today. I tried all propositions found on the internet (including yours: I put both selections to: "System Default", shut down "SourceTree", then reloaded it to set both selections to: "Beyond Compare"). I also tried with settings both fields to" "Custom" selections, with the proper command line and arguments (I made different attempts from what I found on the internet), but nothing works. After trying to run load External Diff, the cursor is flickering a little at moments, but nothing happens. If I load "Beyond Compare" by itself, it works fine. Do you have any suggestion? Thank you!


Answers:
author: bvallee
body: Thanks for your prompt answer! I forgot to mention that I also tried today to set the External Diff Tool to: "WinMerge" (with Merge Tool set to: "System Default" as "WinMerge" is not an option there) and it does not work neither (which used to work also as I switched yesterday from "BeyondCompare" to "WinMerge", did some tests then went back to "BeyondCompare" as my External Diff Tool)...


author: Seth
body: Sounds like some good troubleshooting so far. Have you tested with any other diff tools?
Every bug/feature request I've ever opened has been closed as Obsolete!!!
Asked by D K:

For some bad reason every bug and feature request I've ever opened has been closed as Obsolete "issue affects a version we no longer support"....

Even though the issue was originally raised against an older version doesn't mean it still doesn't exist.

It's frankly a ridiculous reason to close a bug or feature request.


Answers:
author: Seth
body: You're telling the wrong folks. We're users like you.

I got some of those emails, too. If your reports are still relevant, re-open them like the email said. Atlassian has thousands of issues registered just for the Windows SourceTree product, and if hundreds of them are open, but obsolete bugs, it can waste a lot of dev time closing those individually and looking for valid bugs.


author: Robert Ortner
body: :wink:
develop is missing from origin
Asked by Arunbabu:

Hi,

I am missing develop from origin.


Answers:
author: Johannes Kilian
body: Your question is quite imprecise - without context no support can be given


author: Seth
body: Not much context here, so I'll start with the basics. A fresh git repository only has a master branch. If you want other branches, you must create them locally (Branch button) and Push them to origin.
/mingw32/bin/git: Argument list too long
Asked by thvig:

I have the following error:

/mingw32/bin/git: Argument list too long

when i do :

git archive -o ../archive.zip HEAD $(git diff --name-only --diff-filter=ACMRTUXB xxxxxxx)

xxxxxxx = SHA commit

Before it worked.

I use Git Bash Sourcetree.

Thank you for your help

<br />


Answers:
author: Seth
body: You git diff is producing a file list that has too many files for bash to allow as arguments. You might research how to use xargs to accomplish your task.

Basic usage outlined here: <http://stackoverflow.com/questions/11289551/argument-list-too-long-error-for-rm-cp-mv-commands>

comments: author: thvig
body: Ok, I understand the problem.  

But I do not see how to solve using Git Bash SourceTree.  
We must create a script?

EDIT : windows 7 os  


author: Seth
body: To clarify, is SourceTree running the archive command, or are you running it by hand in the Terminal?


author: thvig
body: I use the onboard terminal Source Tree (Not the archive click command).  
Thank you for your help


author: thvig
body: I want to create a "patch" between two commit  
This is not possible directly since the software SourceTree


author: Seth
body: Ok, then SourceTree has nothing to do with your question, it is just a generic git question.

I would recommended emailing the original author of your command and asking if he has any ideas: <http://tosbourn.com/using-git-to-create-an-archive-of-changed-files/>


author: thvig
body: Do you know how can I simply increase the value MAX_ARGS ?


author: Seth
body: Nope, that would be a MinGW question. I'm pretty good at SourceTree, but haven't done anything under the hood of MinGW.


author: thvig
body: Thanks anyway for your help !
I have installed SourceTree 1.8.3.0 in Windows and got the licence from the website. But I could not upload he licence. The "Register" button is missing in the File menu
Asked by Ajith Nair:

Can you please help me to upload SourceTree licence. The "Register" button is missing from the File menu.


Answers:
author: Seth
body: SourceTree does not support that registration method anymore. You should have been required to log in to id.atlassian.com during installation, which registers your software.
Login to your atlassian account cannot progress setup
Asked by Shivaprasad R Badiger:

Im trying to setup the source tree application its not progressing the Login step to remotes step.Untitled.png  
[](https://community.atlassian.com/t5/Sourcetree-questions/Login-to-your-atlassian-account-cannot-progress-setup/qaq-p/191647?attachment-id=6909){#link_1169417e0765fc}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/5508/1/Untitled.png){#display_1169417e0765fc_0}


Answers:
author: Manju
body: That was a minor outage with the login service. All systems are back up and running. You can now login and use SourceTree.


Tags: windows
Require non-empty commit messages for git
Asked by Wilhelm Medetz:

Currently SourceTree allows empty commit messages for git.

Is there any way to force Sourcetree to require non-empty commit messages (as git usually does)?


Answers:
author: Midori
body: You can do this with the Commit Policy Plugin using the the [commit message must match a regular expression](http://www.midori-global.com/products/jira-commit-policy-plugin/documentation/#message-pattern-condition) condition.

This can verify the commit both [locally](http://www.midori-global.com/products/jira-commit-policy-plugin/documentation/git#installing-local-commit-hooks) and [on the server](http://www.midori-global.com/products/jira-commit-policy-plugin/documentation/git) for ultimate security.
I have upgraded my Sourcetree to latest version for my Mac OSX 10.10.5 When starting up the application I must fill in my atlassian login. When done. I cannot go any further. What's the problem. How do I start up the new Sourctetree nad get apssed the log
Asked by Manfred Smol:

<br />

[](https://community.atlassian.com/t5/Sourcetree-questions/I-have-upgraded-my-Sourcetree-to-latest-version-for-my-Mac-OSX/qaq-p/37807?attachment-id=5445){#link_1172fdbfda2f03}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/1131/1/Untitled-1.jpg){#display_1172fdbfda2f03_0}


Answers:
author: Seth
body: Everyone is having this issue right now: [The installer for SourceTree update to 2.2.x cannot proceed after logging into id.atlassian.com](https://answers.atlassian.com/questions/38380785)

Please don't "me too" on that question, just vote it up.
Cannot get past Atlassian account step during setup on Windows 10
Asked by Thomas Caskey:

I unable to get past the Atlassian account set during first time setup on of SourceTree on Windows 10. Once I log in it stays on the "Manage your account" screen in the web popup used for logging in.  
[](https://community.atlassian.com/t5/Sourcetree-questions/Cannot-get-past-Atlassian-account-step-during-setup-on-Windows/qaq-p/337683?attachment-id=11140){#link_116941b7f8727d}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/10085/1/Screen%20Shot%202016-07-12%20at%204.12.44%20PM.png){#display_116941b7f8727d_0}


Answers:
author: Kristen Healy
body: Same problem.

Screen Shot 2016-07-12 at 4.12.44 PM.png


author: Tima Anoshechkin
body: Hey guys any guidance on this?


author: Henrik Grauslund
body: Me too ![sad](/html/@C495B4504065515364EB1894F812B34C/images/emoticons/sad.png "sad")


author: Adolphous Navaratnam
body: same here
sourcetree needs to refer to new location, old branches are still there
Asked by ericianfish:

We recently migrated our backend repository and had to make some changes in our local dev environments. We are basically going to lose our branch history and starting over with a single develop branch. The problem is in sourcetree I see all the old branches, even though I renamed the top level folder so I wouldn't accidentally edit the wrong flies or do something along those lines.

How do I get sourcetree to point to the correct (new) folder and get rid of references to the old ones?

Thanks.


Answers:
author: Seth
body: The top level folder name is irrelevant. If the top level folder contains the same .git folder, then you are working with the same repository.

I'm not sure what you mean by "branch history". Do you want to lose your entire commit history? If so, you can delete the .git folder, then use SourceTree to create a new repository in that directory. You can then commit the entire contents as a massive "initial commit".

If you don't want to lose your entire commit history, then I'm not sure what you're looking for is possible without doing some sort of interactive rebase of your entire git history.
Restore a file accidentally removed from SourceTree
Asked by Thirumal k:

I have stashed my changes in SourceTree and all file were not stashed and i didnot noticed that and i do my modification on another branch and checkout to my previous branch and applied my stash, then merge not done because of conflicts then accidentally i removed my file from Unstaged files. that file was removed and its not found in my project, can any one help me to restore it please...


Answers:
author: Seth
body: If your file was never staged, you'll need to try using some sort of file recovery tool. Use Google to find options for your OS.

If you ever staged it, you might be able to use Git to recover it. However, such an operation is going to be a very advanced command line procedure (using git reflog), and there are probably few people (if any) in this forum that know how (I certainly don't). You should search/ask on stackoverflow or a git power users forum.
Terminal change language to english
Asked by ZyO:

Hello,

Tools-Optioms-Mis set English

image2016-4-10 21:20:12.png

But Terminal has other language

How set language to English for terminal?

OS: Win10

image2016-4-10 21:16:0.png

Thanks  
[](https://community.atlassian.com/t5/Sourcetree-questions/Terminal-change-language-to-english/qaq-p/360104?attachment-id=6900){#link_1169421e8383f8}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/10780/1/image2016-4-10%2021%3A20%3A12.png){#display_1169421e8383f8_0}  
[](https://community.atlassian.com/t5/Sourcetree-questions/Terminal-change-language-to-english/qaq-p/360104?attachment-id=6901){#link_1169421e8383f8_0}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/10780/2/image2016-4-10%2021%3A16%3A0.png){#display_1169421e8383f8_2}


Answers:
author: Qesshiyer
body: The information is good. The post is also having broad set of information. The [Academic writing help](http://www.essayscouncil.com) to college students for making their documents as perfect and intelligent.
I just installed SourceTree and downloaded the license file on Mac OS X. There is no "Registration" button in the "SourceTree" Menu. How can I import the license file?
Asked by Tina Dorn:


Answers:
author: Seth
body: SourceTree requires you to log in my logging in to Atlassian during installation.

Here is a related feature request: <https://jira.atlassian.com/browse/SRCTREE-3593>

EDIT: The original answer I linked to applies to Windows, not Mac, so I removed it. Sorry about that.