Steve Chambers
Steve Chambers

Reputation: 39404

How to use SourceTree with multiple repositories?

I'd like to be able to use SourceTree with more than one Git repository. Have tried adding two repositories to the Repository Settings, which is fine in that it shows the remote repositories and all their remote branches below REMOTES in the left navigation pane:

BRANCHES
  staging
  sourcebranchname
REMOTES
> database-oracle
    staging
    dbbranchname1
> source
    staging
    sourcebranchname2

However, it isn't showing all the local branches that have been created for both repositories. In the example above, there is a branch named "staging" for both repositories but only one is shown under "BRANCHES". Is there a way of dealing with this?

Upvotes: 1

Views: 12101

Answers (1)

lukas-reineke
lukas-reineke

Reputation: 3322

You are confusing remotes and repositories.
Remotes are just different servers with the same repository. For example if you are using a private git server and github for the same project, so you can push to both.
You have two separate repositories (projects)
To add a new repository, click on File -> New / Clone or File -> Open You can than open the two repositories in two windows.

Upvotes: 8

Related Questions