youngmon/atlassian-qna huggingface dataset:
Authentication Failed + App Passwords wwarning
Asked by Felipe S. Fernandes:

Since today, getting this error.

++**App passwords are recommended for most use cases and can be created in your Personal settings:\\nremote: [https://bitbucket.org/account/settings/app-passwords/\\](https://bitbucket.org/account/settings/app-passwords/\)nfatal: Authentication failed for REP_URL**++

Although creating an App Password for multiple times, it won't work anyway.

What is going on?

On both AWX and Jenkins this will not work .


Answers:
author: Kavitha Ramakrishnan
body: issue is resolved ??


author: Karthick S
body: Hello [@Felipe S. Fernandes](/t5/user/viewprofilepage/user-id/2196912) ,  

As per the Bitbucket [communication](https://bitbucket.org/blog/deprecating-atlassian-account-password-for-bitbucket-api-and-git-activity#:~:text=Deprecating%20Atlassian%20account%20password%20for%20Bitbucket%20API%20and%20Git%20activity,-September%2003%2C%202021&text=Starting%20Sep%2013%2C%202021%2C%20new,to%20use%20Bitbucket%20app%20passwords.), Atlassian account passwords are deprecated for Bitbucket API calls and HTTPS git activity (clone, push, pull and fetch), and are being replaced by App Passwords.

App passwords are meant to substitute your real account password and are designed to be used for a specific purpose and limited permissions. They can be easily created and revoked when needed.

If you want to check more information about the App Password, you can reference this [documentation](https://bitbucket.org/account/settings/app-passwords/).

Please note, that the command expects the username, not the email ID. You can get the username from your [personal settings](https://bitbucket.org/account/settings/).   

I hope this helps.  

Regards,  
Karthick S


author: Felipe S. Fernandes
body: Needed to change repositories urls.

![](https://i.imgur.com/Mqcfinn.png)


Tags: authentication

bitbucket-cloud

error

password
workspaces
Asked by Rich Phillips:

We have just started a company account for our team. But when I go to create a company workspace using our company name (Prasaga) I see that the workspace already exists. Its empty, it doesn't appear to be managed by anyone on our team using another of their accounts. Since this is crucial to our brand image and product protection, is there any way to transfer ownership or remove that workspace so we can bring that in-house?


Answers:
author: Caroline R
body: Hi, Rich, welcome to the community!

I was able to find a workspace with the workspace ID you mentioned and confirmed it was created yesterday and you are the admin of this. In this case, I would like to ask you to follow the next steps and confirm if you can see it:

* Open your Bitbucket account \> click on your avatar \> open **All workspaces;**

* There, you should be able to see all the workspaces you have access to;

* Open the workspace of your company;

* There, you should be able to create new repositories.

Please let me know if you can see this workspace and the option to create new repositories there and feel free to share any additional questions or concerns regarding this case.

Kind regards,   
Caroline

comments: author: Rich Phillips
body: yeah it wasn't there, hence this question. I've since found where it was created, it was prior to the SSO connection via the Access app, the admin setup a second workspace using that name and when Access/SSO is enabled, those effectively get hidden as they are attached to that initial account and private vs part of the domain. IMHO, that's probably something that should be looked at, whether all those initial workspaces get moved into the domain ownership when Access / SSO is applied.


author: Caroline R
body: Hi, Rich.

Enabling SSO affects the way you log in to an Atlassian and Bitbucket account, but it does not change the administrators of the workspace. So could you please confirm what you mean by 'hidden'? Which URL were you accessing when the workspace seemed hidden?

Kind regards,   
Caroline


Tags: bitbucket-cloud

cloud
How to delete file using bitbucket server REST APIs
Asked by Rishipal:

I am trying to commit files to bitbucket server using REST APIs. I can easily add or update files using "/rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/browse/{path:.\*}" but i am not sure how should i use this to delete a file.


Answers:
author: Jeff Thomas
body: The REST API for Bitbucket Server does not currently support deleting a file. Feel free to raise a suggestion for that at <https://jira.atlassian.com/projects/BSERV/>


Tags: bitbucket-server

server
Problem adding ssh-key
Asked by Fern?o:

Hi there!

I've already created a ssh-key and use it for other tools. But when I've tried adding my key to bitbucket, I receive the message:

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

But the only key listed is from my another computer. Can you help me?![Captura de tela de 2022-03-09 13-53-31.png](https://community.atlassian.com/t5/image/serverpage/image-id/187262i75939AC8EEF58F4C/image-size/large?v=v2&px=999 "Captura de tela de 2022-03-09 13-53-31.png")


Answers:
author: Fern?o
body: I've discovered that the key was added directly at repository, at

-\> Repository Settings

-\> Access keys

Then I removed the key and it worked.

But bitbucket didn't informed about that fact =(


author: raphaeldealmeida
body: I searched all my repositories and didn't find this key registered.

How can I know which repository the duplicate key is in?

comments: author: Caroline R
body: Hi, Raphael, welcome to the 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


Tags: bitbucket-cloud

cloud

ssh-key
How to restrict pipeline trigger access for individual user or groups.
Asked by Prashantanu Singh Rathore (Temp):

we have multiple custom pipelines configured in yaml file. I want to restrict specific pipeline so that specific user/group can not trigger it. Is it possible in bitbucket ?


Answers:
author: Mark C
body: Hi [@Prashantanu Singh Rathore (Temp)](/t5/user/viewprofilepage/user-id/4191202)

Thank you for reaching out to the community.

You cannot restrict a Pipelines build from running by specific users or groups at the moment.  
However, we do have this [Premium feature](https://support.atlassian.com/bitbucket-cloud/docs/bitbucket-cloud-premium-plan/) called Deployments permission that will allow you to strict a deployment environment that only Admins can trigger a Pipelines build. Apart from that, you can also setup deployments branch restrictions to help you control what can be deployed.  
You can check this blog post for more information: [Deployment Permissions now available in Bitbucket Pipelines](https://bitbucket.org/blog/deployment-permissions-now-available-in-bitbucket-pipelines)

Let me know if you have further questions.

Regards,  
Mark C

comments: author: Prashantanu Singh Rathore (Temp)
body: Thanks Mark, I am using the other mentioned settings already. Just thought of skipping it.


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Soucetree commit issue
Asked by Lu Huang:

I am a new user of Bitbucket and Sourcetree.

I tried to commit a file and load it to the master repository through Sourcetree. Below is a error I got.Please help.

**git -c diff.mnemonicprefix=false -c core.quotepath=false commit -q -F C:\\Users\\LH\\AppData\\Local\\Temp\\bho51okx.n0c**

**\*\*\* Please tell me who you are.**

<br />

**Run**

**git config --global user.email "you@[example.com](http://example.com)"**   
**git config --global [user.name](http://user.name) "Your Name"**

**to set your account's default identity.**   
**Omit --global to set the identity only in this repository.**


Answers:
author: Seth
body: The message tells you exactly what to do. If you hit the Terminal button in SourceTree, you'll get a window where you can run those commands (insert your actual email and name instead of the example values).


author: Tim Crall
body: You can also set these values within SourceTree. On PC go to Tools-\>Options and on General tab, enter your Full Name and Email address. On Mac, go to SourceTree-\>Preferences and do the same thing.
how to add an account
Asked by Hallo Khaznadar:


Answers:
author: Tim Crall
body: On a Mac, click the gear icon in the top right corner of the bookmarks window. Click 'Settings' then click 'Add account'.

On Windows, click 'Clone/New' and select the 'world' icon in top right. Click 'Edit Accounts'. Click 'Add'.


author: Nirmal Shankar
body: Can you please elaborate the question?
Remove a Local Repository
Asked by Glenn Schultz:

I have a local repository that I would like to remove but I cannot find any instructions on how to accomplish this


Answers:
author: Johannes Kilian
body: Within Sourcetree you just close the corresponding tab and remove the bookmark by right clicking the bookmark. You are asked whether you just want to remove the bookmark or completely remove the repository form your local disk.


author: Nirmal Shankar
body: If you just want to remove a local repository you would just need to delete the folder containing the repository
view unchanged files for commit
Asked by statistixl:

Is it possible to view the entire file tree for a given commit including any unchanged files without having to check anything out?

Thanks

Alan


Answers:
author: Seth
body: No. Getting a copy of all the files for a particular commit is pretty much the definition of checking out.

If you want to view all the files for a particular commit while still having access to whatever commit your current branch is on, the only way I've figured to do it is to have two local repos.

comments: author: statistixl
body: Thanks Seth. This seems to be very easy to do with Git Extensions and Smartgit so I'm suprised that it isn't possible.

Thanks anyway

Alan


author: fffred
body: It really is a shame that the very nice option "Open selected version" is available only on modified files. It would make sense to view all files so that we can open any files from a given commit. Sometimes it is hard to find when a given file was last changed.


author: Seth
body: You can view all current files, then right-click the one in question and select "Log selected...". This will show you the list of commits that modified that file.
diff against current - nothing happens
Asked by Johan_T:

So I am on the master branch and choose to "Diff Against Current" on another branch but nothing happens. It does work on other branches and I am 100% sure these two branches which does not work are not identical.


Answers:
author: Ravi Malalasekera
body: I had a similar issue (symptoms at least) where a "Diff against current" was not doing anything.

Found out that I had not selected "All Branches" in the top window. When selected, it worked fine.

comments: author: Petrus
body: I'm experiencing exactly the same behaviour despite having "All branches" selected. I have tried with both FileMerge and Kdiff3.


author: Nirmal Shankar
body: May be in the terminal you can try this command to make sure that there are differences actually. git diff master...your_branch_name (where your_branch_name is the name of your branch)

comments: author: Seth
body: Great troubleshooting suggestion!


author: Johan_T
body: I have committed and pushed changes in the same file to both branches and as I check out the other branch I can see with my eyes that they do differ. Therese a lot of obvious differences and doing a git diff will print me the changes. It's only in sourcetree where it doesn't work.


author: Seth
body: Hmm, do you have any text in the search box that's in the bar between the graph pane and the diff pane?


author: Seth
body: The most likely explanation is that the branches aren't different. (No offense: I don't know you or the situation with your branches, so I don't know how reliable your claim of 100% certainty is. Another recent question was 100% sure there weren't whitespace differences, then found whitespace differences.)

One way to confirm the branches aren't identical (and see a diff) is to merge them. The resulting merge commit will include all the changes from one branch to the other. I would recommend selecting the "force new commit (no fast-forward)" option in this particular situation, and make sure you do NOT push the merge so you have the option to safely reset your branch to the pre-merge commit.

If the merge results in a commit with changes, as you expect, take some screenshots and submit a bug report, because what you describe (if accurate) definitely sounds like a bug, not a user error or configuration problem. Bug reports go to [jira.atlassian.com](http://jira.atlassian.com).
Cloning Git Repository fails: An error occured while checking the destination directory: Unknown error
Asked by William Wagoner:

I'm using version 1.6.20.0 of Windows SourceTree running under Win7. The destination directory is a SAMBA file share from an Oracle Unbreakable Linix (RHEL 6) server which is empty and to which I have R/W access.

I tried mapping a drive letter to the share with the same result. I can clone to Windows-based file shares with no problem. The SAMBA config for the directory is as follows

\[cw-design\]  
comment = R/W HTML/PHP  
path = /var/www/apps/cw-design  
create mask = 0664  
directory mask = 0775  
writeable = yes  
browseable = yes  
valid users = \<ACTIVE DIRECTORY GROUP OF WHICH I AM A MEMBER\>  
#force group = apache  
force group = \<A GROUP WE USE FOR DEPLOYMENT OF WEB FILES\>  
force user = \<A USER WE USE FOR DEPLOYMENT OF WEB FILES\>  
guest ok = no

Any ideas as to why I can't clone from Windows SourceTree to a SMB share on Linux?


Answers:
author: Seth
body: SourceTree (and Git in general) don't work reliably when trying to use a network share repository as local.

Despite whether what you are trying to do is a valid use case for a network-share repository, the people who make decisions about Git would say "just clone it to both the local drive and server, and push/pull as necessary."
Clone a repository but not sure how to create src folder
Asked by Hui Zhao:

Sorry, It may be stupid. I created a repository in Bitbucket, then I copied the uri to SourceTree to clone it to a local destination.

Now I found there is a .git folder. I saw usually there is a src folder in other guys. Is the src folder is created manually? Also there is no master and develop branches shown.

I want to use Visual Studio to deploy the code.


Answers:
author: Jobin Kuruvilla [Adaptavist]
body: You have to create the source folder. the branches (including master) will appear only when you checkin some files.

comments: author: Hui Zhao
body: Thanks. I checked in the code in SourceTree in master, but it only shows master branch without develop branch. Do I miss some steps?


author: Jobin Kuruvilla [Adaptavist]
body: You need to create the branch by yourself as well. Stash gives you the option to give with any branching strategy you like. Gitlfow is only one of the options but you have to create the branches.
SourceTree missing changed files after first commit
Asked by Joe Hanley:

Yosemite, version 2.0.5.2:

1. Open Repository in SourceTree
2. Make some file changes in XCode
3. Changes show up in SourceTree.
4. Commit changes.
5. Make more file changes in XCode.
6. Changes do NOT show up in SourceTree. The only way to get them to show up is by closing and re-opening SourceTree


Answers:
author: Seth
body: Something to try: hit F5 in SourceTree.
How did I undo someone else's commit?
Asked by S Green:

I'm trying to understand how I could have undone someone else's commit, in order to avoid inadvertently doing it again.

* Someone else did a commit
* I did a pull, then push and commit
* The other person's commit is gone.

How could this happen?

The view shows that the other person did not "merge branch to master", but I did "merge branch to master" with my commit.

Thanks


Answers:
author: Tim Crall
body: Did the other person push their commit? Where is their commit missing from - their own repo, a central repo, your repo?


author: Jobin Kuruvilla [Adaptavist]
body: So, the other person didn't merge to master but you pulled from master? Or were you both working on different branches?
Is there a way to SORT the BOOKMARKS list (by Name)
Asked by David A Cobb:

Every day, there are more and more repos I'm trying to track. The bookmark list is ordered chronologically, which makes it difficult to find a specific project. The easiest thing for the user is probably to have the bookmarks kept sorted -- the user can control names to give a desired ordering.

Less easy to do, but even nicer to have, would be allowing to create groupings of bookmarks (like folders), for example to represent Projects.


Answers:
author: Seth
body: The bookmarks list can be grouped (Use the Add Folder button. In Windows, it is next to the Add Repository button below the bookmarks panel).

You can do additional sorting of bookmarks by dragging and dropping the bookmarks in whatever order you want (or into/out of folders).

EDIT: There is no **automatic** sort (sort by name, creation time, edit time, file path, etc).


author: Johannes Kilian
body: You might vote here for better bookmark handling (searching):

<https://jira.atlassian.com/browse/SRCTREEWIN-804>
How do I add a repo on a remote server?
Asked by Zaki Aziz:

I have a git repo cloned on a server (server1 - linux) somewhere. I access this machine from my mac via ssh. The associated git host (remote: origin) is located on another machine (server2 - linux). I want to view the commits/changes on the server1 without cloning the git repo into my mac (local machine).   
Can this be done via source tree?


Answers:
author: Seth
body: I'm not sure what the correct terminology is for Macs, but if you can mount the repository from server1 as a network drive, SourceTree will probably work well enough to view the repo.

However, many users have reported issues trying to **manage** repos on network drives with any git client. If you want to manage commits, merges, pulls, etc, I'd recommend a local clone.

comments: author: Tim Crall
body: Yeah, other than a directory mounting, I don't think there's a way to use SourceTree to view a remote repo.
Hi, For Automation I tried installing Source Tree in Windows 8.1 the issue was I was not able to clone is this common? Then I used the alternative Smart Git will that be helpful as Source Tree has issues? Please provide any solution to make it work.Thanks
Asked by Shabana Shah:


Answers:
author: GabrielleJ
body: Saying that you are not able to clone with SourceTree (on which is a very basic feature) is not enough to say it's an issue with automation. How are you doing it? Can you please provide your use case here? For automation , I will use a more command line oriented tool (like git bash), not a thick UI client like SourceTree.


Tags: clone
Option to hide left navigation which lists branches in SourceTree
Asked by Ismail S:

There should be option to hide left navigation which lists branches in SourceTree. This is same way how we can show/hide bookmarks tab.

SourceTree1.PNG  
[](https://community.atlassian.com/t5/Sourcetree-questions/Option-to-hide-left-navigation-which-lists-branches-in/qaq-p/358286?attachment-id=3963){#link_1173bd6447cf6a}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/10704/1/SourceTree.PNG){#display_1173bd6447cf6a_0}  
[](https://community.atlassian.com/t5/Sourcetree-questions/Option-to-hide-left-navigation-which-lists-branches-in/qaq-p/358286?attachment-id=3964){#link_1173bd6447cf6a_0}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/10704/2/SourceTree1.PNG){#display_1173bd6447cf6a_2}


Answers:
author: Seth
body: You can resize it to 0 width. Does that produce a different outcome that what you're seeking?


Tags: windows
What do all the icons mean?
Asked by Tim Huffam:

I'm trying to figure out the status of a branch of a project I haven't worked on for a while - being fairly new to Git and SourceTree - I have no idea if the branch has been merged back to master or not.

Other than the main toolbar buttons, which are self explanatory, the rest of the SourceTree UI is a mystery - not at all obvious to me.

It would be great if it had some docs - at least a simple single page detailing what the various UI components and icons do/mean.

Thanks

Tim


Answers:
author: Seth
body: <https://answers.atlassian.com/questions/269451>

comments: author: Tim Huffam
body: Thanks Seth - but that answers only a small percentage of the UI. What do the branching icons mean? eg the icon immediately to the left of the word "release" in the image in the link you posted? ThanksTim


author: Seth
body: The branch icon just means that the name next to it is a branch. If it has a check, that's the branch that is checked out.
SourceTree - How to Merge/Commit after Pull
Asked by S Green:

Recently I did a Pull to get the latest from the remote. Immediately after that, my Working Copy changed to 23 from 7 (under File Status on the left panel). Presumably, the difference is the new files pulled from the remote that are newer than my local copies. The bottom status bar says: master Merge: 17 modified 6 missing. (I know that a dev deleted files which explains the 6 missing).

I want to update my local dev environment with the latest files, but am unclear how to do that and get my Working Copy back to the number that reflects only the files that I have changed locally.

git status from command line says "On branch master. All conflicts fixed but you are still merging.   
Use "git commit" to conclude merge. In addition, there is a list of files (in red) that are "Changes not staged for commit. (I have not touched those files).   
Use 'git add/rm' to update what will be committed.  
Use 'git checkout' to discard changes in working directory.

Question: what is the fastest way to just update my local files and get "Working Copy" to 0?   
Do I really need to do a "git commit" AND "git add" AND "git checkout"?

<br />

I'm just nervous about potentially changing anything on the remote or getting further out of synch.

Thanks in advance.


Answers:
author: Seth
body: Correct. "Commit" is a local operation. You must "Push" to modify remotes.


author: S Green
body: Thanks Seth. If we assume that I did not have uncommitted changes in my repo, and all I need to do is commit all the changes I've pulled from remote repo, is it correct that I can hit the top "commit" button? Just confirming that that only impacts my local repo (because I don't want to change remote at this point). Cheers


author: Seth
body: This sounds like an unusual situation to me. In my experience Git won't allow me to pull if I have any uncomitted changes in my repo. Are you confident you had local changes (that weren't committed)?
Resolve issues automatically when you commit from SourceTree?
Asked by pyramus:

I'd like to **automatically** resolve a specific issue in Bitbucket when I push a commit directly from SourceTree. I know [this is possible for github with manual git commit commands in the terminal](http://stackoverflow.com/questions/1687262/link-to-github-issue-number-with-commit-message), but I'm using SourceTree and Bitbucket in my workflow. I currently always have to visit the Bitbucket site and resolve issues manually in the Issue tracker.

Could someone please explain me how to set this up directly in SourceTree?


Answers:
author: Gary
body: HI,

Please see <https://confluence.atlassian.com/bitbucket/resolve-issues-automatically-when-users-push-code-221451126.html>.

<br />

Cheers,  
Gary


Tags: bitbucket-cloud

commit

jira

resolve