Sync 2 peer repositories with SourceTree

I remember when I worked on commend line git over Linux, I was able to sync my repository with a peer repository for, say, integration testing before both of us push to the central or origin git repository. Can I do similarly with SourceTree? If so, is there any resources documenting how?

1 answer

Git is designed to be de-centralized. All non-local repositories (central or peer) are "remotes". You should be able to add the peer repository as a remote using the parameters you used for connecting with command line.

So one can't do so via the GUI? And such use case can only be done via command line?

My actual use case is syncing my Mac with Windows 7 repository which has VPN access to the remote origin (yep, my Mac has no VPN). How do I get git command line on Windows 7? [UPDATE: never mind about command line, I see the icon on the toolbar...]

Yes, you can use the GUI to add remotes. Under the repository menu, go to "Add remote...". In push/pull menus you'll have the option of which remote to use for the operation. It should default to origin.

Seth, thanks for responding. Since I can't find any useful documentation on SourceTree, can you possibly give me the steps using GUI to...

1) Share a local branch to peers

2) Formulate the connection string to access the local branch for a peer to add a remote


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 23, 2018 in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

1,129 views 4 2
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you