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?
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.