Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to push the existing bitbucket repository to GitLFS using sourcetree

Krit July 31, 2018

I have an existing bitbucket repository which contains some large binary files but I want to use the Git LFS extension to the BitBucket.

I am trying to achieve this by following this resource-

https://confluence.atlassian.com/bitbucket/use-bfg-to-migrate-a-repo-to-git-lfs-834233484.html

But the following code to clone a bitbucket repository doesn't work because I deleted the ssh public key generated on the source tree. So, I tried generating a new public key but the ssh folder and the keys are not generated in my local folder. 

git clone --mirror git@bitbucket.org:<username>/<repo-name>.git

Could anyone point me in the right direction as to what should be done? I am using macOS High Sierra. 

 

 

1 answer

0 votes
Manju
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 31, 2018

Are you doing this on macOS?

Krit August 1, 2018

Yes, I am using Mac OS. 

Krit August 1, 2018

@ManjuThe experience is quite frustrating because I tried generating a different public key but the ssh folder and isa pub file not generated. Could you help me with this issue please as I have to push some of the large files immediately? 

Manju
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 1, 2018

Are you trying to generate your ssh keys from Sourcetree? Or manually in terminal? 

If you have added your account in Sourcetree, you can use an app password generated in Bitbucket as your basic authentication password and you will be able to do all actions with that. More about App passwords here - https://confluence.atlassian.com/bitbucket/app-passwords-828781300.html

Krit August 2, 2018

Thanks, Manjunath! The first time I generated the ssh keys from Sourcetree but then the public key which was in my local machine got accidentally deleted.

So, now I am trying to generate it through the terminal. 

All I am trying to do is use the Git LFS extension of Bitbucket to push the large binary files from existing bitbucket repository to the Git LFS Bitbucket.

Will App password generation help in this?

Manju
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 3, 2018

You can go to ~/.ssh folder and remove every thing inside it and try to generate your ssh keys again from Sourcetree. That would work. 

App Passwords would also work regardless of whether or not you want to use ssh. 

Krit August 3, 2018

Alright, I am unable to locate .ssh folder on my mac. I think it's missing. How do I retrieve it?

Manju
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 7, 2018

What happens if you try to generate an ssh key from Sourcetree?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events