youngmon/atlassian-qna huggingface dataset:
How to Clone private repo in VS Code with account passwords no longer supported
Asked by Chris Gage:

I'm attempting to clone a private repo in VS code. I am logged into Bitbucket. When I click on Clone Repository. It asks my for the URL which I enter. After selecting the location it asks me for my password. I then get the error:  

Failed to authenticate to git remote:  
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://bitbucket.org/XXXXXXXXXXXXX>  

I have setup an App password, but I don't see the opportuntiy anywhere to enter this when trying to clone.  

What do I need to do?


Answers:
author: Theodora Boudale
body: Hi Chris,

The app password should be used in the place of a password. The place to enter it is when you get a prompt to enter your password during a clone.

If you no longer get prompted to enter a password when you try to clone, it is possible that a credential manager is used in your machine that has saved the password you used the first time.

You can check if a credential helper is used a) for all users in your system and b) only for your user by running the commands:

```
git config --system credential.helper
git config --global credential.helper
```

If a credential helper is used and it has saved credentials for bitbucket.org, you will need to clear them in order to get prompted for a password the next time you clone.

Another option is to use SSH, as Aron suggested. When using SSH, authentication is done with the SSH keys instead of a username and app password. However, if you prefer HTTPS, the app password should be used in the place of a password when you clone/pull/push.

Kind regards,  
Theodora


author: Aron Gombas _Midori_
body: I am not familiar with VS code, but it general I think [connecting to Bitbucket over SSH](https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/) would be a tool-independent way to work with your repositories.

It requires some efforts, but those should only be done once, then you can forget about it and it is secure.


Tags: bitbucket-cloud

cloud
Domain change impact (bitbucket.xxx.in to bitbucket.xxx.com)
Asked by Prabhu Chilukuri:

Hi Team,

We would like to know that, is there any impact when we change the domain **bitbucket.xxx.in** to **bitbucket.xxx.com**.


Answers:
author: Aron Gombas _Midori_
body: Last year we moved our Bitbucket server to a new URL (from an in-house server to AWS) and the most painful part was that the "remote" in all working copy (typically the local clones of your developers) needed to be updated to the new location's URL.

But, it requires only running a Git command, so you can easily guide your developers.

(Other than that, if you have incoming links from documentation to your repos, branches, commits, PRs, those should be updated too.)

All in all, it is not as bad as it sounds.

comments: author: Prabhu Chilukuri
body: Hi Aron,

Could you please share me the troubleshoot steps?


author: Aron Gombas _Midori_
body: I don't understand the question.


Tags: cloud
Someone has already added that SSH key.
Asked by Oleh Plyska:

Hi   
Could you please with adding ssh key?  

Command \`ssh -T git@bitbucket.org\` show me next message:

C:\\Users\\oleh\>ssh -T git@bitbucket.org  
Enter passphrase for key 'C:\\Users\\oleh/.ssh/id_rsa':  
authenticated via ssh key.

You can use git to connect to Bitbucket. Shell access is disabled


Answers:
author: Nic Brough -Adaptavist-
body: I am sorry, I do not understand where you are stuck?

comments: author: Oleh Plyska
body: The problem that i cannot add my ssh key to my current account. Each time I'm getting an error message "Someone has already added that SSH key".  
Possible, i have added this key long time ago to another account, but now i cannot find this account. So, could you help with understanding which account has got this key?


author: Nic Brough -Adaptavist-
body: I'm sorry, I should have been able to work that out from the question, but I was not sure.

This message is telling you that you have tried to share a key with another account. That's a poor security practice, and one you should not do.

If you can't remember what account the key was originally associated with, your best option is to create a new key for the new account.


Tags: bitbucket-cloud

cloud
Merhaba ben proje kodu mu bitbucket e y?kleyemiyorum her?eyi yap?yorum git dosyas? olu?muyor
Asked by Hamide Gezer:

Git uygulamas? y?kl? fakat git dosyas? olu?muyor


Answers:
author: Theodora Boudale
body: Hi [@Hamide Gezer](/t5/user/viewprofilepage/user-id/4981266) and welcome to the community!

After translating your message, I understand that you have issues uploading your code to Bitbucket Cloud.

You also mention "git file is not created", and I'm not sure what you mean by that.

Could you please let us know:

**1.** What operation are you trying to perform?

Is it **git push**? Or something different?

**2.** Are you using a command-line tool or a Git GUI client?

If it is a Git GUI client, which one are you using?

**3.** What is the exact command you are executing and the full output you get?

(Please make sure to sanitize any sensitive info in the output prior to sharing it here)

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Branches view shows a branch is behind when it is not, even after deleting and re-creating branch
Asked by Chris May:

The branches view for one of our very active repositories shows that a branch is behind when it is not. Even deleting and re-creating the branch does not resolve the issue.

The newly created branch (with the same name) immediately shows that it is behind again the same number of commits as it incorrectly showed before we deleted it and recreated it.

The only solution I see at this point is to completely delete the repo and re-create it. Not a great situation.


Answers:
author: Chris May
body: After about 20 minutes, the problem has miraculously resolved itself.


Tags: bitbucket-cloud

cloud
find repositories after certain date.
Asked by santhosh kumar challa:

Trying to find all repositories with text alter table except some repositories after this date. the below search don't work.

alter table -repo:apple -repo:orange -repo:gauva repo:contains.commit.after(june 25 2020) ext:sql


Answers:
author: Patrik S
body: Hello [@santhosh kumar challa](/t5/user/viewprofilepage/user-id/378756) ,

Thank you for reaching out to Atlassian Community!

I'm afraid that Code Search in bitbucket cloud does not currently have any modifier to filter based on the date.

You can check the available modifiers/filter in the following documentation :

* <https://confluence.atlassian.com/bitbucket/code-search-in-bitbucket-873876782.html>

Based on the above, you can only filter your query to Include or Not include a given repository, but not based on date. Please allow me to share some examples :

* Include just repos **apple** , **orange** and **gauva** :  

  ```
  repo:apple repo:orange repo:gauva search-term
  ```

* Include all the repos except repository called **apple**

  ```
  search-term NOT repo:apple
  ```

Let me know in case you have any questions.

Thank you, [@santhosh kumar challa](/t5/user/viewprofilepage/user-id/378756) .

Kind regards,

Patrik S

comments: author: santhosh kumar challa
body: Hi Patrik,

Thanks for the quick reply.

Can we also do this?

Trying to find all repositories with text **"alter table" except some repositories after this specific date**. the below search don't work.

alter table -repo:apple -repo:orange -repo:gauva repo:contains.commit.after(june 25 2020) ext:sql


author: Patrik S
body: Hello [@santhosh kumar challa](/t5/user/viewprofilepage/user-id/378756) ,

As I mentioned in my previous answer, Code Search in bitbucket does not currently support filtering the repositories by date. I went ahead and created a feature request to implement this functionality:

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

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, [@santhosh kumar challa](/t5/user/viewprofilepage/user-id/378756) .

Kind regards,

Patrik S


Tags: bitbucket-cloud

cloud
SourceTree V-2.0.20.1 Not installing in Windows10
Asked by Govarthan A:

I'm using Windows 10 OS. While I tried to install the latest version(2.0.20.1) there is nothing happend. It just shown Atlassian popup then stoped. There is no process in Taskmanager also. I checked in Control Panel, Sourcetree installed without icon. One shortcut created(with icon) in Desktop tried to launch the application but no use. While launching the application, Windows Crash Reporter process is on top of the Task manager. Kindly provide solution to install the latest version.


Answers:
author: Ana Retamal
body: Hi Govarthan! Are you a new SourceTree user, or did you already have one of the previous versions? To move to the latest version of SourceTree, it's necessary to uninstall 1.9.x first, then manually download and install it from [www.sourcetreeapp.com](https://www.sourcetreeapp.com/).

If this is still not working, you can you try [resetting your preferences](https://confluence.atlassian.com/sourcetreekb/how-to-wipe-sourcetree-preferences-412484640.html?_ga=2.44088164.1377586298.1495528143-2118628899.1471273130?).

Let me know if you could install it now.

Cheers,

Ana

comments: author: Govarthan A
body: Hi Ana,

Thank you so much. Problem due to C:\\Users\\\<username\>\\AppData\\Local\\Atlassian\\ folder. Now it's working fine.

Govarthan.A


author: Ana Retamal
body: Thanks for sharing, Govarthan! Hopefully it will help other users too :)


author: nico_verwer
body: It did help me today, when Sourcetree suddenly would not start anymore. Thanks!


Tags: install

windows
Sourcetree for Corporate Usage?
Asked by Emmanuel Wilder:

Is there support for Sourcetree for Corporate Usage? I am looking for the new way to do it since the upgrade.


Answers:
author: Ana Retamal
body: Hi Emmanuel, in the past we documented a workaround to allow the bundling of a license file with each installation, but that was not an officially supported workaround. With the new version of SourceTree adding a corporate key is no longer possible, as you can see at [License for Corporate Usage](https://confluence.atlassian.com/sourcetreekb/sourcetree-license-for-corporate-usage-388404078.html).

Last year, we removed the notion licensing and asked our developers to register the product by creating an Atlassian account, which allows developers to easily accept Atlassian's Customer Agreement and have a single login for all of our cloud products. Additionally, it ensures that SourceTree is distributed with respect to US Export Control laws.

We are tracking direct feedback on this specific request at [SRCTREE-3593](https://jira.atlassian.com/browse/SRCTREE-3593). Please feel free to add your feedback, and specifics around your teams needs.

Regards,

Ana


Tags: licence
source trree ask for username and password WINDOWS 10
Asked by liron navon:

I know it's been asked before, but any of the solutions I saw didn't work, I use windows 10 and sourcetree is in version 2.0.10.1

is still asks me for a password, even though I supplied one, I tried deleting the account and log in again, I tried to change the password.

nothing seems to work, it's a shame that this bug is dragging for so long, I saw people ask it about windows 8 and 7!!

<br />


Answers:
author: Ana Retamal
body: Hi Liron! What solutions have you tried? Have you seen [this thread](https://community.atlassian.com/t5/SourceTree-discussions/Git-Credential-Manager/td-p/580591) and [this thread](https://community.atlassian.com/t5/SourceTree-questions/Git-Credential-Manager-for-Windows-Popups/qaq-p/579905) already?

I'd also recommend you to upgrade to the latest version, SourceTree 2.0.20.1 as some authentication issues have been fixed since 2.0.10.1

Let me know if this helped you!

Cheers,

Ana
Why can't I see stash contents on Windows version 2.0.20.1?
Asked by mmcev106:

When I try to view a stash in this version, a loading indicator is displays indefinitely. The stash contents are never displayed. Is anyone else seeing this?


Answers:
author: Mike Corsaro
body: Did that stash display in other versions? Additionally, 2.1 was released yesterday, could you give it a try?

<https://downloads.atlassian.com/software/sourcetree/windows/ga/SourceTreeSetup-2.1.2.3.exe>

comments: author: mmcev106
body: The stash does not load in this version either. I did notice that the loading indicator does not display right away (not sure if this changed in this version, or if I just missed that before).

Regardless, stashes still do not display. I can reproduce this on a brand new repo as follows:

```
mceverm@computron ~/Downloads$ mkdir testmceverm@computron ~/Downloads$ cd testmceverm@computron ~/Downloads/test$ git initInitialized empty Git repository in /cygdrive/c/Users/mceverm/Downloads/test/.git/mceverm@computron ~/Downloads/test$ touch foomceverm@computron ~/Downloads/test$ git add foomceverm@computron ~/Downloads/test$ git commit -m 'initial commit'[master (root-commit) 7c9083a] initial commit 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 foomceverm@computron ~/Downloads/test$ echo asfd > foomceverm@computron ~/Downloads/test$ git stashSaved working directory and index state WIP on master: 7c9083a initial commitHEAD is now at 7c9083a initial commitmceverm@computron ~/Downloads/test$ stree
```


author: Mike Corsaro
body: Strange -- could you upload your log file? Thanks.

<https://confluence.atlassian.com/sourcetreekb/sourcetree-logfile-location-675384748.html>


author: mmcev106
body: My log has some sensitive code in it, so I would prefer not to upload the whole thing. I can confirm that no lines are added when this occurs.

I think I may have just found a lead though. The problem only seems to occur when I launch SourceTree from a cygwin shell. I'm guessing this is a pretty big edge case for your users, so it won't hurt my feelings if it's not worth pursuing.


author: Mike Corsaro
body: Ah, that's interesting... I'll take a look from my side and see if that lets me reproduce the issue. Thanks!


author: Mike Corsaro
body: Looks like running like that causes issues with the PATH setting -- which causes issues for ST as it won't be able to find the git.exe path. Can you try again, but go to "Toops\>Options\>Git" and set "Use Embedded Git" and see if that works?


author: mmcev106
body: Yep, that fixes it. Thanks much!


Tags: windows
When changing to another branch, the master is always active
Asked by sdorgsu:

The problem occurred after the upgrade from 1.x to 2.0.20.1  
I switch to another branch.  
But visually, always is active 'master' branch in the tree and the list of all branches.

![master_always _active.png](/t5/image/serverpage/image-id/1422i3E8E83898E1FC733/image-size/large?v=v2&px=999 "master_always _active.png")  
When I go to the 'master' branch, the context menu is disasbled. You can only go through a click in the tree.  
Also, the inscription "uncommitted changes" is constantly displayed. But there are no changes.

![uncommiting_changes.png](/t5/image/serverpage/image-id/1423i95BC6D0D7C97EEDC/image-size/large?v=v2&px=999 "uncommiting_changes.png")

What can be done with this problem?


Answers:
author: minnsey
body: Hi  

We are aware of the issue with 'uncommited changes' please see <https://jira.atlassian.com/browse/SRCTREEWIN-7112>


Tags: commit
Incomplete ST files list
Asked by Nicola Casu:

Hello, i've found a possible bug in SourceTree. When i have a list of files (5-6 or more) to commit, not all files will be\&nbsp;listed. Pressing F5 to do a new scan/refresh, causes some appears, and some disappears... wtf?! When i have to do a commit with 200+\&nbsp;files, at least 20-30 files need an additional commit, because these disapperas from list... Is this normal? Sorry for my non-optimal english, thank you! Nicola


Answers:
author: Nicola Casu
body: Thanks Ana!


author: Ana Retamal
body: Hi Nicola! This has already been reported as a bug and you can find it at [SRCTREEWIN-7174](https://jira.atlassian.com/browse/SRCTREEWIN-7174). Please watch it so you get notified of the latest updates.

Let me know if you have any questions!

Cheers,

Ana


Tags: bug
Feature branching workflow seems to update develop branch without permission.
Asked by martinapps:

I created a feature/A branch off develop. I did some coding in feature/A branch and decided to abandon that work. I changed my active branch from feature/A to develop, and I saw the work done (but not committed) in feature/A was present in the develop branch also. Does switching back to the parent branch imply an end-feature action request? I wanted to leave feature/A as an orphan branch that could then be deleted.


Answers:
author: Mike Corsaro
body: Hello! To keep that work in the old branch, you'll need to commit those changes before switching branches (you don't need to push them, but if you don't they'll only stay on your local machine). If you'd like to store the changes without commiting them, you can use the "Stash" button.

If you'd like to switch branches and discard all the changes you've made, just check the "Clean" box when switching branches (this will discard all of the changes you've made).

comments: author: martinapps
body: Thanks for the info. I was beginning to think I couldn't work with the Gitflow since I didn't understand how that happened. Now I'll go back to experimenting with it. But what happened to Git's normal action of not allowing a branch switch with uncommitted work outstanding?

Thanks for the tip. I didn't know about the Clean option; it's good to know.


Tags: git-flow
Source tree installer not running while trying to download from sourcetreeapp.com
Asked by Sumantra Chakraborty:

Trying to install Source tree from sourcetreeapp.com for 64 bit Windows. While clicking on Download button, it's not giving the RUN option to execute the EXE. It's only giving Open and Save options.

Please help how can I run the EXE


Answers:
author: Ana Retamal
body: Hi Sumantra! Are you using Internet Explorer? If you are, then you're affected by this bug [SRCTREEWIN-7216](https://jira.atlassian.com/browse/SRCTREEWIN-7216).

As a workaround, you can download SourceTree with a different browser or download it directly at [SourceTree 2.0.20.1](https://downloads.atlassian.com/software/sourcetree/windows/ga/SourceTreeSetup-2.0.20.1.exe).

Hope this helps!

Ana
Can't install SourceTree 2.0.20
Asked by Allavine Curtis:

I'm currently on SourceTree version 1.9.13.7. I got the notice to upgrade SourceTree to the version 2.x series. I downloaded the SourceTree file SourceTreeSetup-2.0.20.1.1489683341 and unzipped it. When I execute the Update executable, the cmd window flashes briefly, and a Squirrel setup file is created. That's all it does. Nothing else happens and SourceTree does not get updated.

Is there a step I'm missing?

Thanks!


Answers:
author: Ana Retamal
body: Hi Allavine! To move to the latest version of SourceTree, it's necessary to uninstall 1.9.13.7 first, then manually download and install it from [www.sourcetreeapp.com](https://www.sourcetreeapp.com).

If this is still not working, you can you try [resetting your preferences](https://confluence.atlassian.com/sourcetreekb/how-to-wipe-sourcetree-preferences-412484640.html) and making sure SourceTree is not currently running in Task Manager.

Let me know if you could install it now.

Cheers :)

Ana
SourceTree 2.0.20.1 does not push new branches to origin
Asked by Pedro G. Acevedo:

In 1.9, if I created a local branch and then checked the box that says "Push changes immediately to" when committing, the new branch would be replicated on origin. Now, the blue indicator on the progress bar just keeps sliding across my screen indefinitely until I have to cancel the operation. The code gets committed locally, but never reaches the remote repo.

I tried using the Push option to set the branch manually, but got the same results.

![screenshot.png](/t5/image/serverpage/image-id/1396iE422B75986A18BD4/image-size/large?v=v2&px=999 "screenshot.png")


Answers:
author: Pedro G. Acevedo
body: The upgrade apparently required me to re-add my key to ssh-agent. For some reason, SourceTree did not prompt me to do so. I had to close and re-open SourceTree because otherwise ssh-agent would not launch.

Problem solved.


Tags: branch

push
How do I delete a single file committed last year?
Asked by Ian Nisbet:

A large binary (2Gb) file was accidentally committed, then some months later it was deleted. I therefore have two commits that mention this huge file, which makes the whole .git directory huge. I want to delete just this file from the first commit, then also from the later commit, so that the whole git repository becomes a lot smaller.


Answers:
author: jyo
body: Ian,

I think your best option here would be to use BFG Cleaner:

<https://rtyley.github.io/bfg-repo-cleaner/>

This way you can run this script and delete just file and not have to do a git reset operation which would roll you back far into history.

Cheers,

Jesse
How can I split the Develop Branch this way with SourceTree?
Asked by ralvy:

Suppose I've been doing work on my Develop Branch and the current revision is Rev 150. I've been working a particular set of features starting with Rev 125.

Suppose I now I think I should have actually started a Named Branch at Rev 125 and left my Develop Branch alone. Is there a way for me to use SourceTree to go back to Rev 125 and make it and its decendants become a new Named Branch?


Answers:
author: Manju
body: Double click on the given revision and you are on it. You should be able to create a branch from there. Make sure its the right commit you are on and the right branch from which you intend to create your branch.

comments: author: ralvy
body: I can see I didn't explain what I wanted clearly enough.

I want all the work I did from Rev 125 to Rev 150 (the Develop Tip) to become a New Branch that starts with Rev 125. So Rev 124 will become the Develop Tip, and all the work I did from Rev 125 to Rev 150 will become a Named Branch.


author: ralvy
body: Here's an image of what I'd like to be able to do. The left scheme is the original and the right scheme is the new one.![SourcetreeBranchingIdea.png](https://community.atlassian.com/t5/image/serverpage/image-id/1635iC3BC9A80E8F418AC/image-size/large?v=v2&px=999 "SourcetreeBranchingIdea.png")
Where can I follow planned release dates of Atlassian products?
Asked by Thiago Camargo:

Where can I follow planned release dates of Atlassian products? Is this information available to the public?

There's a bug on SourceTree 2.0.20.1 which is apparently solved in 2.1.0.2 but I couldn't find when is it planned to go out.


Answers:
author: Nic Brough -Adaptavist-
body: Atlassian don't do release dates publically, they ship when the team is ready. You can usually get a feel for when something will be released by watching the community and the JIRA project for the product