youngmon/atlassian-qna huggingface dataset:
Exporting old HG repos
Asked by vibbix:

Hello, in my main workspace i have around 14 missing HG repos. I am missing most of these locally, can i be provided a backup? Thank you.


Answers:
author: Theodora Boudale
body: Hi everyone,

Atlassian made a decision to move away from maintaining and supporting Mercurial repositories in 2019.

This was announced in community:

* <https://community.atlassian.com/t5/Bitbucket-articles/What-to-do-with-your-Mercurial-repos-when-Bitbucket-sunsets/ba-p/1155380>

and on our blog:

* <https://bitbucket.org/blog/sunsetting-mercurial-support-in-bitbucket>

Bitbucket Cloud Support team is no longer able to restore those repositories.

If you are looking for a Mercurial repository that was public, all the public repos were archived by Software Heritage:

* <https://bitbucket-archive.softwareheritage.org/>

We will not be able to meet any further requests for recovery of private HG repositories and users will need to recover those from local copies only.

Kind regards,  
Theodora


author: Caroline R
body: Hi, [@vibbix](/t5/user/viewprofilepage/user-id/4689432)! Welcome to the community!

If you're looking for public repositories, the Software Heritage archived all the **public** repositories and made them available here: <https://bitbucket-archive.softwareheritage.org/>  

If you're looking for private repos, we can help you recover them. 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 let me know if you have any questions.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
Is there a way to add Jira Issue Status change as part of Bitbucket Merge Checks?
Asked by Archie Qui?ones:

We have an Bitbucket and Jira integration.  

I was wondering if there was a way to include a merge check in Bitbucket where it would only resolve once our workflow transition from "IN TEST" to "READY FOR PROD"?  

Is this possible? and if it is, I hope you could guide me through it.  

Thanks in advance.


Answers:
author: Caroline R
body: Hi, [@Archie Qui?ones](/t5/user/viewprofilepage/user-id/4689164)! Welcome to the community!

Currently, it's not possible to create custom merge checks for Bitbucket Cloud. However, we already have a feature request to implement that as you can see here:

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

I would suggest that you add your vote there (by selecting the **Vote for this issue** link) as the number of votes helps the development team and product managers better understand the demand for new features.

You are more than welcome to leave any feedback, and you can also add yourself as a watcher (by selecting the **Start watching this issue** link) if you'd like to get notified via email on updates.

Implementation of new features is done as per our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) and any updates will be posted in the feature request.

Kind regards,   
Caroline


Tags: bitbucket-cloud

cloud

jira

jira-software

jira-software-cloud
I am unable to connect bitbucket from Visual studio 2019
Asked by Kumaran Muthukumar:

Hi There,

I am not able to connect to the bitbucket in my Visual studio 2019 - Professional edition. It errors out saying the operation is forbidden.

Strangely am able to login using Visual studio code, with the same credentials. It works.

Note : I did try creating an app password as mentioned in the link [App passwords \| Bitbucket Cloud \| Atlassian Support](https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/) , that didn't work either.


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

Could you please confirm if you are using the following extension?

* <https://marketplace.visualstudio.com/items?itemName=MistyK.VisualStudioBitbucketExtension>

What operation are you trying to perform that fails? Can you please describe to us the steps you are following? Can you share a screenshot of the error you are facing?

Looking forward to hearing from you.

Kind regards,   
Caroline

comments: author: Kumaran Muthukumar
body: Hello Caroline,

I believe the issue is now resolved. the problem was with the user name. Instead of the user name I was using the email id that I used to get into the web version. Once I was able to pick up the user name from my personal settings, the app password worked and I am able to now connect successfully.

Thanks a lot for your prompt follow up in this regard.

Thanks,

Kumaran Muthukumar


author: Caroline R
body: Hi, Kumaran!

I'm glad to know that! Please feel free to share any other questions or concerns you might have in the future.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
Use sourcetree over ssh
Asked by Stef Wijnberg:

Hi guys,

I am now working with SourceTree for the past 3 months. Works really great! I have only one issue.

We work with a local development server here in the office. I mount the filesystem of the server with NFS. With a lot of git actions, wich is very slow over a mount it takes a lot of time for a simple push.

Is it possible that SourceTree can work over ssh? So SourceTree runs all the git commands over SSH and not not from on local machine.

Hope you guys have an answer : )

Cheers, Stef


Answers:
author: Seth
body: This has been [asked](/questions/278907/error-code-128-shows-unknown-network-drive) [many](/questions/266964/git-is-failing-to-stage-or-commit-with-sourcetree-in-a-windows-network-environment) [times](/questions/314285/network-performance) [before](/questions/275021/fatal-unable-to-write-new-index-file).

To summarize, you should use that server as a remote, not as an NFS local drive.


Tags: ssh
trivial branch graph
Asked by Jan Geertsma:

Hi,

When developers don't pull before their commit and don't rebase, they create trivial branches.

Would it be possible to graph it in such a way that the one who last committed and therefore branched would be in a new branch line/color.

In the example below (Date Ordered), the yellow commit was not responsible for trivial branching, but the blue commit after the purple commits was. So I would expect the yellow commit to be blue and the blue commit yellow.

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

It would help me to show, why frequent pulling and rebasing works best for us.

It's a minor thing, and I'm a happy_user of SourceTree (1.6.1.0), fixing this would make me happy_user++

**EDIT:**

I created an improvment, I don't expect it to be fixed, but at least it got a cool issue number  
[](https://jira.atlassian.com/browse/SRCTREEWIN-2000)<https://jira.atlassian.com/browse/SRCTREEWIN-2000>


Answers:
author: Seth
body: My strategy to prevent these trivial branches is to always use the "rebase" option when I pull. If you are pushing and pulling via a central server, you should consider this. If you are using the distributed model, however, it will probably introduce more problems than it solves.

For some additional perspectives on the pros and cons of this approach, [StackOverflow](http://stackoverflow.com/questions/2472254/when-should-i-use-git-pull-rebase). Most of these say "go for it", and the only objection I've heard personally has been "other developers said it could cause problems sometimes," no additional detail.


author: Seth
body: I expect this won't be fixed, as it would require making an exception to the way branches are drawn, which is currently "draw the branch with the more recent commit on the left".

Regardless of my prediction, I am 100% confident that there is nothing to be done about this behavior from the user's perspective. You might have some luck [filing a feature request](http://jira.atlassian.com). If you do so, please post a link back here as an answer.
Mac OS Maverick with ssh key from Windows 7
Asked by Ribbon Dinh:

I have ssh key on Windows 7 machine and i don't want to generate other key on Mac OS. How can i re-use that key?

Thanks!


Answers:
author: Seth
body: There are actually two files, the public key (which you've put on remote servers) and a private key. You just need to copy the private key to your Mac. If you generated your keys with PuTTYgen, you'll need to make sure you've got the OpenSSH format for your private key if you want it to work on the Mac. PuTTYgen can convert it for you.

comments: author: Ribbon Dinh
body: @Seth Foss: Thanks for your reply,

I have 4 files, 2 for github generator, 2 for PuTTY generator. I copied to \~/.ssh folder and add it to key chain. And i'm very thank if you support me step by step.


author: Seth
body: Sorry, but I don't know anything about key management in OSX. However, the OS shouldn't be able to tell the difference between a private key generated locally and one copied from another machine.
Unable to Pull, Fetch, or Clone repos
Asked by Max Atwood:

Since last week I've been unable to pull the most recent changes from my repository. I don't get any errors and the output sticks on the first command it shows:

"git -c diff.mnemonicprefix=false -c core.quotepath=false clone --recursive [https://git.example.com/server/etc"](https://git.example.com/server/etc%22)

I've run fiddler and don't see any output from SourceTree, and I've also tried reinstalling the program multiple times, in addition to this I've deleted all my existing local repositories and tried to recreate them, only to have the clone command hang. I'm all out of ideas of what to do here so any help would be appreciated.


Answers:
author: Max Atwood
body: there may be something screwy with the command that SourceTree is trying to execute through the GUI. After reinstalling everything again I went through the command line to see if I could get it to work and was able to successfully pull in a copy of my repo.

I don't know what might have caused this but it seems to work through the terminal where it won't through the GUI.

comments: author: Lenon Marumbwa
body: I have an almost similar problem. Tried all you mentioned above, no progress. It throws a STATUS_ACCESS_VIOLATION exception. Any idea how i can solve this one because my Pull does not succeed


author: Max Atwood
body: I couldn't tell you. I'm still learning and don't really have enough experience to help other people troubleshoot. I only got my issue fixed, not really figured out.
Git merge messing up changes
Asked by jmejiaa1986:

I have a branch I've been working on locally, I've been keeping it merged with the main branch up until yesterday.

Today when I did a merge I got some errors, I noticed the main branch has some new changes and it's removing them, essentially as if I had deleted those changes(I didn't touch those files)... I get the same results merging in either direction, it seems to think my files are more up to date even though they are missing lines.

I'm afraid it may be doing it with a lot of files, so I haven't commited the merge.. What's going on?


Answers:
author: Seth
body: Are you merging while you have uncommitted changes in your working copy? If so, that's a bad idea. You should commit those changes or stash them. I'm surprised SourceTree isn't preventing you from merging and instructing you to do one of those things.

If that's not what's happening, I'm not sure what changes are being deleted. Maybe some screenshots of the Log/History graph would help?

comments: author: jmejiaa1986
body: No files are modified, I'll try to get some more info today..I've only been using git for a short time but haven't had this happen before..


Tags: git

github
Cannot see staged files in stage area unless restarting SourceTree
Asked by Johannes Ebner:

After upgrading to SourceTree 1.6 for WIndows, whenever I stage a file, the staging area is "working" forever and I cannot see the staged files unless I restart SourceTree.

How can I fix this?


Answers:
author: Johannes Ebner
body: [](https://jira.atlassian.com/browse/SRCTREEWIN-1894)<https://jira.atlassian.com/browse/SRCTREEWIN-1894>

Turning off "Always display full console output" fixes the issue.


author: Seth
body: Generic steps: try uninstalling and re-installing SourceTree. If that doesn't work, file a bug report at [jira.atlassian.com](http://jira.atlassian.com)


Tags: windows
How to install previous version of SorceTree? Wheere to get it?
Asked by mitov:

Ths latest version of SourceTree is extremely buggy and unstable.

The user interface is also very difficult to use in this version, and a lot of features that ware easily availablle in the previous version are now difficult to access.

How I can revert to a previous version of SourceTree? This version is nearly impossible to use.


Answers:
author: amrichmond
body: Here is a link to the previous version:

<http://downloads.atlassian.com/software/sourcetree/windows/SourceTreeSetup_1.5.2.exe>


author: amrichmond
body: The nice thing was uninstalling the new, then installing the old - I didn't have to re-setup anything. It remembered everything.


author: amrichmond
body: Besides bugs and unstable I agree with "The user interface is also very difficult to use in this version, and a lot of features that ware easily availablle in the previous version are now difficult to access."


author: Seth
body: It would be helpful to everyone if you would report any bugs you experience to [jira.atlassian.com](http://jira.atlassian.com)

comments: author: mitov
body: I will try, but the SorceTree crahses when I do almost anything. Just trying to unstage with unclicking the check box for couple of files is enough to throw a bunch of GIT errors and then crash.

View's are also appearing/dissapearig by themselfs I mean it is hardly possible to even figure out how to report all that. The stability is virtually non existent :-( .

How I can get the old version? I need to use the tool :-(
Colour of branches in SourceTree
Asked by Ian Ashley:

Consider the simple case where myBranch is created from master. There are no other branches.

myBranch is the current branch and therefore shown on the left. Below where myBranch is created the master is shown. Above where myBranch is created myBranch is on the left and master is on the right. However the colour of the left column remains the same. It would be clearer if the master branch had the same colour all the way up so that is easier to tell where myBranch was created.

Alternatively is there any easy way to go to the commit where a branch was created?


Answers:
author: Seth
body: There have been multiple questions and answers regarding colors. This one contains links to others: [](/questions/310287/how-to-know-which-branch-color-correlates-with-which-branch)<https://answers.atlassian.com/questions/310287/how-to-know-which-branch-color-correlates-with-which-branch>

I do not know of a way to jump to a branch's original commit, but such a feature sounds useful. It should be possible to implement a feature that jumps to the last commit that two branches have in common, since merging looks up that commit.

comments: author: Ian Ashley
body: How about displaying a tooltip if you hover over a branch/green dot displaying the name of the branch?
Diffs in SourceTree only for certain files - size problem
Asked by J?rgen Starek:

We had an issue where a SourceTree user reported "diffs aren't working for some files". This effect was unrelated to file types or file content.


Answers:
author: J?rgen Starek
body: Since we didn't find the answer quickly, I'd just like to document it here: The reason may be the rather small default size limit for diffing files. It can be changed in the "Diff" tab of SourceTree's settings.

comments: author: Patrick8639
body: Currently, in the 3.1.3 version, this setting is in **Tools \| Options** , under the **Diff** tab, and is named **Size Limit (Text):**
How do I commit changes locally that I don't want pushed to the repo?
Asked by Fred Wood:

I have made changes to files in my working copy that are specific to just this project, and now I want to commit these changes, but in this project only. If I commit these changes, the commit shows up in push. How do I prevent them being pushed back to the repo?


Answers:
author: Mirko Skramusky
body: Hi Fred!

you can commit your changes without pushing it to anywhere else. You git-client should not do this automatically. I don't know what you mean by "specific to just this project", maybe it's a good idea to create a branch and commit you changes only to this branch without merging to you main branch ("master").

Hope this helps.

comments: author: Fred Wood
body: Hi Mirko,

Thanks for responding. My repo contains general files that are common to all projects, however, each project will customize some of those files and those changes should never go back to the repo. I think my confusion came from not realizing that working copy changes could be applied to any branch. What I mean is, I thought that if I had Master checked-out when I made changes, those changes would only be available for committing in the branch they were created in. Now I see that I can pick and choose which changes are committed in which branch.

I have done as you suggested and created a branch to commit the changes only in my local project. Thanks for the reply


Tags: commit

push
Sourcetree merge branch into master automatically commits - why?
Asked by Simon Dib:

Sometimes when I merge a branch into master the files automatically commit themselves ready for a push. Typically I would expect a merge to first appear in the Working Copy area so I can review which files I do actually want to commit or remove.   

Am I performing the merge incorrectly? While I'm in the Master branch I right-click on the branch to merge in then click "Merge **branch** into **master**".

Confusingly this problem only happens some of the time. On occasion the files do appear in the Working Copy area as expected.

Any suggestions welcome!


Answers:
author: Seth
body: This happens because it is the way Git is designed to operate. The occasions when the files do NOT automatically commit are almost always because there is a conflict that needs resolved before you can commit.

There is good news, though. The fact that the merge is committed does not, in any way, prevent you from reviewing and modifying the changes. Review the diffs in the commit details, make any changes you need to make. Then, when you commit, select "amend previous commit".

comments: author: Simon Dib
body: Ok, thanks that makes sense. One other question though - when it auto-commits it doesn't give me a chance to add a log message. For example, if I merge from branchA into master I'd like to add "Merge 'branchA' into Master". Instead what actually happens is it uses the last commit message from that branch.   

From what you've suggest it sounds like I could do an "amend previous commit" and add the message there, but it seems like an extra unneccessary step, especially if I don't have any further actual file amendments?   

Hope this makes sense .. ?


author: Seth
body: That does makes sense, but doesn't match the behavior of SourceTree on my machine. When I merge, the automatically-generated commit message is something like "Merge branch 'branchA' into master".

You might try a command line merge and see what commit message it uses.


author: erumhannan
body: @Seth this is also happening on my side its not creating merge commit that is "Merge branch 'branchA' into master"


author: Seth
body: When the merge comfirmation dialog opens, there is an option to "Create a new commit even if a fast forward is possible" - try that.

What is probably happening is that no changes were made to master between when you created your branch and when you merged it back. In that scenario, there isn't actually anything to merge, so by default git will instead "fast-forward" the master branch to the last commit on branchA. The option I mentioned will force git to create a new commit anyway (which is often preferred when dealing with a "master" or "dev" branch).


Tags: mac
External Diff button does nothing
Asked by Frode Nilsen:

External Diff has stopped working for me. It used to work and I don't know when it stopped working. Beyond Compare was what I used, but I've tried all other options including setting "CMD" as custom external diff, just to see a console window open. It does not.

I'm running Windows 7. Beyond Compare is installed in the default location and is working as expected when I run it outside SourceTree. I've tried diff'ing both on git repos and mercurial repos.

Is there something I do wrong? Any tips on how I can fix/debug this issue?

Pastebin of my sourcetree.exe.config : [](http://pastebin.com/sFpba1A6)<http://pastebin.com/sFpba1A6>..or at least I think it is. Weird thing is that the timestamp on the config was from April this year, and "DiffTool" is -1 (system default from what I've read), although I've set it to Beyond Compare... Might Source Tree store the config elsewhere? There's a fucked up corporate home drive sync setting here that might interfere.


Answers:
author: Frode Nilsen
body: This suddenly started working again. I don't know what I did.


author: Bal?zs Szakm?ry
body: The answer [here](/questions/327098/sourcetree-external-diff-tool-doesn-t-launch-and-conflicts-disappear) might help.


author: Seth
body: There is an option in SourceTree that controls whether it is allowed to modify the git config file. That should be allowed if you want to set the diff tool with the SourceTree options dialog.

comments: author: Frode Nilsen
body: It is and was set to true
SourceTree - Loses changes and remotes
Asked by clarkstevenson:

Sorry about my poor wording here.   

I have been using SourceTree for many months, and recently I installed manual git msys for bower. Then I had all sorts of problems and abandoned bower usage and uninstalled git.   

I reinstalled SourceTree several times.   

The problem is that SourceTree acts normally when I first boot up the PC. It shows me my remotes, and shows me my changes. Just as I always expect.   

However, after an unknown time (and often instantly, on first launch) it appears to lose all connection to data. This screenshot shows that all my remotes are gone, and that all changes are being ignored.

[](http://imgur.com/iDWJqyh)<http://imgur.com/iDWJqyh>

<br />

<br />

Does anyone know why SourceTree is dropping like this?  

Thanks for your time :)


Answers:
author: clarkstevenson
body: It appeared to be comodo auto-sandbox.   

<br />

<https://answers.atlassian.com/questions/190694/my-sourcetree-don-t-want-to-show-the-log-it-says-git-log-failed-with-code-128-with-no-messages>


author: clarkstevenson
body: For me it was comodos auto-sandbox. I do not recall changing anything which is odd.   

[](/questions/190694/my-sourcetree-don-t-want-to-show-the-log-it-says-git-log-failed-with-code-128-with-no-messages)[https://answers.atlassian.com/questions/190694/my-sourcetree-don-t-want-to-show-the-log-it-says-git-log-failed-with-code-128-with-no-messages\<br\< a=""\>\>](https://answers.atlassian.com/questions/190694/my-sourcetree-don-t-want-to-show-the-log-it-says-git-log-failed-with-code-128-with-no-messages%3Cbr)Sorry for the dud post.