LFS across projects

lesley johnston
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 14, 2023

I have an existing project using git lfs. As I wanted to start a new project using the same framework I'd been using in Unity, I copied the local files into a new folder, cleaned out all unesccasary files but kept what was useful to make a base template, and then cloned this into a repo under a new project.

I know the two projects will both use the same LFS storage limit as its the same account, but is there any risk this new project repo will impact the original project repo when I push i.e. is there a unique pathway reference to worry about? Or will both projects add to the repo but remain independent?

1 answer

1 accepted

0 votes
Answer accepted
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 17, 2023

Hi Lesley,

If I understand correctly, you have two Bitbucket Cloud repositories with LFS and two repositories locally?

A clone directory you have locally usually stores in a configuration file the URL of the remote repo that it is going to use for fetch and push.

You can see that if you navigate from a terminal application to the directory of each clone and execute the command

git remote -v

The output will look like this if you use HTTPS:

origin https://username@bitbucket.org/workspace-id/repo.git (fetch)
origin https://username@bitbucket.org/workspace-id/repo.git (push)

Or like this if you use SSH:

origin git@bitbucket.org:workspace-id/repo.git (fetch)
origin git@bitbucket.org:workspace-id/repo.git (push)

In this case, there is one remote named origin, and next to it are the remote URLs that are used for fetch and push.

If you execute this command in the clone directory you have locally for each repo, do you see a different repository URL for each repo?

Kind regards,
Theodora

lesley johnston
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 21, 2023

Hi Theodora,

 

Yes, two cloud repositories that have a local repo each, they are separated at the Project level within Bitbucket.

Running that command they are different. Both projects return a URL that is specific to its own repo title (with the fetch and push matching in each one).

Does this mean they have independent paths to the LFS?

Thanks,

Lesley

Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 24, 2023

Hi Lesley,

The URL that is specified for each clone is going to be used for pushing, including LFS. If that is different for your two local repos, then yes, they are independent.

Kind regards,
Theodora

Like lesley johnston likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events