youngmon/atlassian-qna huggingface dataset:
Can strange account(not atlassian, not workspace user) commit private repository?
Asked by ?? ?:

Hi, I'm administrators of my company bitbucket cloud workspace

one of our users used personal account(not atlassian) committed some source to our private repository that workspace use premium plan

![?? ?? 2022-01-12 120121.png](/t5/image/serverpage/image-id/177331i3D6C466510D249F7/image-size/large?v=v2&px=999 "?? ?? 2022-01-12 120121.png")

Shouldn't it be possible for anyone other than registered user's account to commit?  
Please reply and tell me if there is anything I need to do


Answers:
author: Vishwas
body: Hey [@?? ?](/t5/user/viewprofilepage/user-id/4640150)

Welcome to Atlassian Community !

Its a private repository. That's correct the users who are added to that particular repository into write access role can only add commit.

There can be another reason also there might be a chance that user might have git config in the local machine set to personal email id so when they do local commit author is taken from there, but when they push to remote they are using official id. hence causing this thing.

But from bitbucket UI it's not possible for an user who doesn't have write access to commit to a private repo.

Regards,

Vishwas

comments: author: ?? ?
body: **hi [@Vishwas](/t5/user/viewprofilepage/user-id/1231381)**

**I understood exactly what you said! That was the reason!**

**thank you for your reply!! :D**


author: Vishwas
body: Hey [@?? ?](/t5/user/viewprofilepage/user-id/4640150)

Welcome ?

Please feel to upvote, accept answer if you feel it helped you.

Regards,

Vishwas


Tags: bitbucket-cloud

cloud
Bitbucket Reuse Username
Asked by David Co:

I have a bitbucket account that I use personally and I'd like to use the same username for a new company I'm starting up (start-up company has a different workspace)

When I try, it says "Username already exists"

How would I be do this ?


Answers:
author: Pramodh M
body: Hi [@David Co](/t5/user/viewprofilepage/user-id/4704313)

Welcome to the community!!

For getting access to workspace, workspace name should be different from one the account name which you have right now, but as administrator or user you can get the access to workspace

In case if you need to give same name for your workspace as you account username, this cannot be achieved as bitbucket only allows unique username.

What you can do is change the username of personal account and you will have option to set the name for your workspace which was used for personal account

Thanks,

Pramodh

comments: author: David Co
body: Thanks [@Pramodh M](/t5/user/viewprofilepage/user-id/3691224)

Do usernames need to be unique across all bitbucket globally ?

I'm happy to use a different workspace name, but I'd like to use the same username for both accounts


author: Pramodh M
body: Yes it should be unique!


Tags: bitbucket-cloud

cloud
Does anyone has any idea how long it takes to reset 2FA for Bitbucket access?
Asked by Jose Guerrero:

I have asked to restart my 2FA for Bitbucket but has not got a response yet. Does anyone know how long it might take?


Answers:
author: Caroline R
body: Hi, Jose!

Thank you for reaching out to Atlassian Community.

In order to reset your 2sv, you can follow this process:

* when you are trying to log in and the system asks you to inform your code, you are going to see a window like this:

![2sv.png](https://community.atlassian.com/t5/image/serverpage/image-id/177656iDD08FB0F542F7B63/image-dimensions/234x324?v=v2 "2sv.png")

* Select the "**Forgot code?**" option and you are going to be redirected to another page;

* Select "**Send recovery email**";v

* The system will send you the first email with instructions;

* After 24 hours, Bitbucket will send you an email with a one-time login to provide you access to your account. The 24-hour waiting period is a necessary security measure to prevent an unauthorized person from gaining access to and exploiting your account.

I see you have already initiated this process, so you will receive the second email after the waiting period.

Please feel free to share any additional questions or concerns regarding this case.

Kind regards,  
Caroline


author: Pramodh M
body: Hi [@Jose Guerrero](/t5/user/viewprofilepage/user-id/4704344)

Welcome to the community ?

May I know how you have reset the 2FA Option?

comments: author: Jose Guerrero
body: Hi [@Pramodh M](/t5/user/viewprofilepage/user-id/3691224) I have not reset it. I have asked to the bitbucket team to do that, but I have not got a response yet.


author: Pramodh M
body: You may need to provide the proof to prove the account is yours and you will get a response!!


author: Jose Guerrero
body: Sorry I dont quite follow. Could you be a bit more specific please? ... This is my request to do the reset of my account "CA-1647077" but I have not been asked to do anything else actually.


Tags: bitbucket-cloud

cloud
Is there a way to export all of BitBucket Server to be used as import to BitBucket Cloud
Asked by Socko-71:

We are in the early stages of converting Bit Bucket Server to Bit Bucket cloud. I have seen examples on exporting repository but I was looking for a one time export and import of all projects and their repositories.

Thanks


Answers:
author: Robert Wen_ReleaseTEAM_
body: Have you looked at the Bitbucket Cloud Migration Assistant ([more info here](https://bitbucket.org/blog/bitbucket-cloud-migration-assistant))?

comments: author: Socko-71
body: DUH...didn't see this...great! Thanks


Tags: bitbucket-server

migration-customer-care

server
Can't do anything in SourceTree (can't access to bibucket.org:3128)
Asked by ThomasKowalski:

Hi everyone

Since this morning, I can't use SourceTree anymore ![sad](/html/@C495B4504065515364EB1894F812B34C/images/emoticons/sad.png "sad")

I don't know from what it comes but whenever I try to clone or push or whatever, I have the same error (I can't get it now exactly but) :

```
fatal: can't acess to ThomasKowalski [...] can't acess bitbucket.org:3128 -no error
```

And that's all, for every operation. Don't know from what it comes. I reinstalled, wiped the preferences and all the stuff but it still won't work... I use the embedded versions of Git and Mercurial. I thought it was a thing with the proxies (I have a proxy at high school and not at home so I have a little program called ProxySwitcher that switches it automatically, maybe it fucked up da system...), but I can't do anything (currently I'm at home, so no proxy, no proxy in IE (verified) and in SourceTree the settings are "Use default system parameters" and Add proxy server confiruation to Git / Mercurial is unchecked...

Please help me ![sad](/html/@C495B4504065515364EB1894F812B34C/images/emoticons/sad.png "sad") I'm going to South Africa tomorrow and it would be a big problem if I couldn't work on all my stuff...

PS : offline commit works.


Answers:
author: ThomasKowalski
body: OK so I found the answer myself, even if I had been searching for 3 hours before asking... So if anyone has this problem, you should just go to SourceTree settings, in Git, and then click the "Reinstall" button (or something like that), I believe it's at the bottom right of the window.

:smile:

comments: author: Kevin Newman
body: Reinstall fails for me, and that darned login box just keeps showing up. I think part of the problem is that it redirects to a localhost server which isn't running. This morning github went down, and had a similar issues - in the command line it would open that popup, then it would switch back to login credentials at the prompt. This entire subsystem needs to be tossed and rebuilt with some kind of sane and repeatable way to reliably log in. I lose 15 or 20 minutes every time this happens, and it's not just sourcetree.


author: Kevin Newman
body: And as evidence, this original post is from 2014, and it's now 2018...
How do I add a Git Hub account?
Asked by Ralph Johnson:

SourceTree installation included a prompt to add an account. Drop down menu listed BitBucket, Git Hub, and I think one other. I picked BitBucket because I was in the process of activating that account. Now I'd like to add Git Hub as another account. How?


Answers:
author: Seth
body: Try View \> Show Hosted Repositories.


author: Ralph Johnson
body: It's academic. I was in the middle of a ruby on rails tutorial, begun using ruby 1.9.3 as installed by RailsInstaller (where everything is automatically installed and I don't have to learn a bunch of new stuff just to get it to run). Mid-tutorial, it required ruby 2.0.0, and simultaneously switched from GitHub to BitBucket. BitBucket suggested SourceTree. I didn't want to cut myself off from all previous work so thought I should set up an account for Git Hub as well. Apparently doesn't work that way. None of this matters anyway, because I can't figure out how to use ruby 2.0 with the current configuration (or change the configuration to utilize it). Everything is a 26 step process, and none of the steps are adequately explained without consulting 35 different bulletin boards with only partial answers, which have to pieced together like a Rube Goldberg machine. I would use an expletive here, except it would probably get me banned from this forum. Sorry for asking the same question twice, didn't mean to. Newb. Klutz. Sorry.


author: Seth
body: Do you want to add it as a second remote to the same repository, or do you want to manage a second repository with SourceTree?
how can I add a git hub account to SourceTree?
Asked by Ralph Johnson:

Added BitBucket account when installing SourceTree. There was a dropdown that also gave GitHub as a choice. I opted for BitBucket, assuming there would be a way to add another account. ?? Can't find it.


Answers:
author: Seth
body: [You asked this twice.](https://answers.atlassian.com/questions/9867868/how-can-i-add-a-git-hub-account-to-sourcetree) Don't do that.


author: Olga Farber
body: it would be nice to find an answer.. when I find one, I'll add it here
Cloning from Bit Bucket in Source Tree taking forever
Asked by ryan:

I am trying to clone a repository from Bitbucket into Sourcetree and it does not get past the

```
Cloning into 'directory'....
```

stage. Does anyone have a solution? I have tried both SSH and HTTPS. Sourcetree acts like it is cloning the repository, but it has been over an hour now.


Answers:
author: Gavin Kimpson
body: I am having the same issue on a 1GB+ repo - did you find anyway to 'speed' it up by any chance?


author: John Garcia
body: It's not uncommon for large repositories (over 1 GB) with long histories to take a very long time to clone.


author: Bal?zs Szakm?ry
body: How big is the repo you are cloning? How much bandwidth do you have?


Tags: bitbucket-cloud

clone

cloud

git

repository
In sourcetree how do i preserve last modified file date across checkin/checkout?
Asked by Gordon Raup:

I go back and forth between branches using Sourcetree. I'll check in one branch, checkout a second, make some changes, check that branch back in and checkout the first branch again. The file date on the files that have to be replaced when going back to the first branch are today's date instead of the date the file was last modified. Is there any way to preserve the last modified date so that it truly is the last time the file was edited? Thank you.


Answers:
author: lorenzomontesi
body: I don't know if git saves last modified date (probably not) but surely sourcetree could set last commit date as last modified date for files, so this feature would be appreciated if it were implemented.
Problem committing new php files to GIT using Sourcetree
Asked by Nicholas Antimisiaris:

I am using Sourcetree Version 2.0.2 (2.0.2) for mac and I am having the following really strange problem.  

1. I create a new clone from URL
2. I then add a new folder in a subfolder of the main project folder
3. I add an html file in the subfolder (and sourcetree correctly sees this as a changed file and lets me select it to commit)
4. If I add a php file in the same folder Sourcetree does not propose it for commit.

I have no idea why this is happening.


Answers:
author: Nicholas Antimisiaris
body: I have no .gitignore in this repository ... maybe it is picking this up from somewhere else?

comments: author: Bal?zs Szakm?ry
body: Do you have a global .gitignore?


author: Nicholas Antimisiaris
body: Yup - that was it. I have somehow accumulated a long list in my global .gitignore from sourceforge. I guess when I am asked in one repository to have an ignore file rull this rule becomes global - I was expecting it to only have a local scope.


author: Bal?zs Szakm?ry
body: Do you perhaps have a rule in your .gitignore which excludes the file?
Terminal in sourcetree says that HOME is wrong
Asked by Fredrik Norling:

When I opening Terminal in any git repository it says that my home directory is wrong and the path shown is invalid. How do I change this ?


Answers:
author: Bal?zs Szakm?ry
body: Set an environment variable called HOME to point to the place where your .gitconfig file is. On Windows, it is usually in c:\\users\\\<username\>. It also might be in a network location, if you have a personal folder on your company's file server.
Can't stage files in SourceTree
Asked by Jon Ward:

I'm trying to set up my initial commit, but I can't seem to stage any files. I've dragged them from the Unstaged Files area to the Staged Files area, but they never show up in Staged Files. It seems as though I'd done it once, because my "Initial Commit" in the Branches window shows the files, but they don't show up in my Bitbucket repo.

I'm new to git and have no idea how this really works and I'm very confused at this point. The Bitbucket website says I have no commits, but SourceTree is telling me it committed something somewhere and Bitbucket is the only remote repo I have set up. I feel like I'm missing something but have no idea what it is.


Answers:
author: Seth
body: Welcome to Git.

When using a DVCS (Git/Mercurial, for example), one of the most important characteristics to understand is that the day-to-day versioning operations (checkout, commit, branch, merge) do not interact with remote repositories. Rather, the initial setup on your machine creates a ++full++ , ++local++ repository, and all of those operations interact with your local repository. Operations like Push and Pull synchronize changes to your local repo with any remotes you have configured.

Check out the [Git Book](http://git-scm.com/book), even (especially?) if you have used centralized versioning in the past (CVS, SVN). I especially recommend sections 1.1 - 1.3, and chapters 2 and 3.


Tags: git
SourceTree multiple branches
Asked by Guy Dillen:

Hi,

I'm new to SourceTree. I would like cloning (on my local workstation) different branches (master and develop) from the same remote repo. How can I do this in SourceTree?

Thanks.  
Guy  


Answers:
author: Seth
body: You don't clone a branch, you clone the entire repository. Once you have a local repo, you can "check out" one branch at a time, but can switch as frequently as you want with or without access to the remote.

If you need to have working copies for two different branches at the same time, you'll need two local repositories. You can either have both clone the same remote repository to different local locations, or you can have your second local repo clone your first.

comments: author: Guy Dillen
body: Hi Seth,

Thanks.

I performed "Clone from URL" and I get a copy (folders/files) of the "master" branch in my local git folder. In the "SourceTree" window I see: under BRANCHES master and under REMOTES develop - HEAD - master.

When I now right-click "develop" and select "Checkout" I see in my "SourceTree" window under BRANCHES develop and master; but I don't see in my local git repository adding any files of the develop branche?

My intentions are: not changing the source code from the remote repo but I would like having the code of the different branches locally (for local use in another app)?

Thanks.  
Guy  


author: Seth
body: When you check out a different branch, the files in your local folder should change, unless the contents of the two branches are identical. If that isn't happening, there may be something wrong with your local git setup. Compare the branches and identify one difference that should exist between the two, then check for that after checking out each branch.I still don't really understand what you're going for, but I don't need to. If you need access to both branches at the SAME TIME, you NEED two repositories. Otherwise, alternating checkouts should be sufficient.


author: Guy Dillen
body: *My intentions are: not changing the source code from the remote repo but I would like having the code of the different branches locally (for local use in another app)?*

I suppose I need to use your 2nd option:

*If you need to have working copies for two different branches at the same time, you'll need two local repositories. You can either have both clone the same remote repository to different local locations, or you can have your second local repo clone your first.*

Ok it works now. I created two repo clones the master branche called "abc-master" and the develop branche called "abc-develop". Both folders are now in my local git folder.

Thanks.

Guy
Why new SourceTree become more ugly than old version?
Asked by Simon Fan:

I wonder why a beautiful software need upgrade to ugly version, is this by design?


Answers:
author: Seth
body: This question is far too vague to be useful to anybody. "Beautiful" and "Ugly" are subjective descriptions. Obviously the designers like the new look better. If you have a specific, concrete request or question, you might get some positive attention. The current question is just whining.
Jira issue key in commit message in SourceTree and recognizing it in bamboo build
Asked by Andrey Shovkoplyas:

What the easiest way to add JIRA key in commit message in Source Tree, can SourceTree get the key from the branch name?

Why bamboo doesn't recognize Jira key from merge commit with branch name like "Merge branch/JIRA-KEY-issue"?


Answers:
author: Andrey Shovkoplyas
body: I decided to add client commit-msg hook, which automatically adds JIRA Key in commit message from branch name, and checks JIRA Key in message

```
Linux?#!/bin/bashBRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)if [[ $BRANCH_NAME =~ KEY-[0-9]+ ]]; then   echo -e "\n"$BASH_REMATCH &gt;&gt; $1fiif ! grep -Pq "KEY-[0-9]{4,}" $1; then    echo "Aborting commit due to commit message without JIRA-key."    exit 1fiWindows?#!/bin/bashBRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)TR=$(echo $BRANCH_NAME | sed -r 's/.*(KEY-[0-9]{4,}).*/\1/')if [[ -n $TR ]]; thenecho -e "\n"$TR &gt;&gt; $1fiif ! grep -Eq "KEY-[0-9]{4,}" $1; then    echo "Aborting commit due to commit message without JIRA-key."    exit 1fi
```

where

```
KEY-[0-9]{4,} - JIRA Key with not less than 4 numbers 
```
Error while merging two branch which has files with same name Please help
Asked by Gaurav Saxena:

image2014-10-8 16:59:13.png  
[](https://community.atlassian.com/t5/Sourcetree-questions/Error-while-merging-two-branch-which-has-files-with-same-name/qaq-p/80079?attachment-id=3283){#link_116afdb70d99d4}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/2236/1/image2014-10-8%2016%3A59%3A13.png){#display_116afdb70d99d4_0}


Answers:
author: Bal?zs Szakm?ry
body: You need to resolve the merge conflict locally, not on the server.


Tags: git

merge
Where can I download an older version of SourceTree?
Asked by James Robertson:

The latest version is a UX nightmare and generally doesn't work very well.


Answers:
author: Ramiro Pointis
body: In this question people have added a couple of links for download a previous version, take a look

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

comments: author: James Robertson
body: Ah, I missed that. :smile: Thanks.


author: Ramiro Pointis
body: Hi, if you go throught previous-next pages in this blog you will find previous versions:

<http://blog.sourcetreeapp.com/page/2/>

comments: author: James Robertson
body: Hi Ramiro,

All the download links in all blog posts just link to the latest version. There's no history of versions to browse (that I can find).
Moved from OS X to Windows, repo has lots of uncommitted changes
Asked by Paul Manta:

I just move a Git repository from OS X to Windows (I copy-pasted it) and now both text and binary files (PNG, TTF) have uncommitted changes. When I click an individual file to see what's changed, SourceTree doesn't show any differences.

I suspect this has something to do with line endings. I tried creating a .gitattributes file that marked PNG and TTF files as binary, hoping that Git would ignore them, but it didn't work (it made no difference).

```
*.png binary*.ttf binary
```

I have difficulty in solving this problem because I don't know for sure what the cause is, because I don't know what the solution should look like, and I don't know how to actually implement the solution (I'm new to Git).

How ca this problem be solved?


Answers:
author: Timothy
body: And how did you move? Copy \& paste?

The proper way should be a git clone --bare. Go ahead and Google the solution. :smile:
try to access dataserv page
Asked by REID K SPENCER:

I am trying to access the dataserv page


Answers:
author: Brant Schroeder
body: [@REID K SPENCER](/t5/user/viewprofilepage/user-id/5241321) welcome to the Atlassian community

Can you please provide a little more information about what it is that you are trying to access?


Tags: confluence-cloud

unknown-hosting-type
Could we have a "Collapse All" and "Expand All" option in the Pages navigation ellipses?
Asked by Phil Bustin:

I'm building a Confluence space with many pages and 3 levels within each top page. It would save me time and effort if Confluence offered a "Collapse All" and "Expand All" option in the Pages navigation ellipses for any level.


Answers:
author: Phil Bustin
body: Thanks. I did that.


author: Andy Gladstone
body: [@Phil Bustin](/t5/user/viewprofilepage/user-id/4843891) you may want to add your input to the existing request for customization of the navigation bar/panel.

<https://jira.atlassian.com/browse/CONFCLOUD-74799>


Tags: cloud

confluence-cloud
When we add the Style macro Confluence adds lines to our pages
Asked by englund.david:

Our organization just moved from Confluence server to cloud. I used to store my CSS in the HTML macro, but that has been taken away by our organization out of security concerns. So, now I'm trying the "Style" macro. I find that once I insert this macro on the page with CSS rules in it that Confluence adds lines (border-like, but not borders?) to the page. It looks here like it has added lines to the page sections. I DO NOT want these lines to show.

Thoughts? Suggestions? Solutions? :)

![Confluence-Style-Adds-Lines.jpg](/t5/image/serverpage/image-id/270810i789A000127FBBD7A/image-size/large?v=v2&px=999 "Confluence-Style-Adds-Lines.jpg")


Answers:
author: Marjorie
body: [@englund.david](/t5/user/viewprofilepage/user-id/5154882) Did you try setting up a theme or using a theme for the site?

Or use an add on such as [Confluence (atlassian.net)](https://hud-rpa.atlassian.net/wiki/marketplace/discover/app/net.veniture.confluence.cloud.macrosuite?installDialogOpen=true&source=element-browser)

This is a filtered list of add ons with the word style [Confluence (atlassian.net)](https://hud-rpa.atlassian.net/wiki/marketplace/discover/search?query=style)

comments: author: Marjorie
body: This is a css addon that might help [Confluence (atlassian.net)](https://hud-rpa.atlassian.net/wiki/marketplace/discover/app/confluence-customcss?installDialogOpen=true&source=element-browser)


Tags: cloud

confluence-cloud