Question

I have 2 folders: my Netbeans and VisualStudio folders, each containing projects.

Is there a way for them to use the same Bitbucket repository, without having to change their location? I tried making 2 local repositories, but when changing one, it asks me to pull, and it adds everything from the remote repository in the curent one. I don't want that to happen, obviously.

Was it helpful?

Solution

If I hear you correctly, You want a single (or small number) of repositories in bitbucket, but you want to use then for a potentially large number of independent projects, thus saving money, correct?

Your options are

  • Single large repo with a project per branch (messy, all projects see all branches and tags)
  • git --namespace (check the git man page)

I use git --namespace= for this, because it allows each "project" to have branches and tags without ever seeing each other. Note that regardless of what method you use to do this, a git-pull or git-fetch will always retrieve a full copy of all the repository objects.

https://www.kernel.org/pub/software/scm/git/docs/gitnamespaces.html

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top