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

Thanks!

Suggest an answer

Log in or Join to answer
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

262 views 0 3
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot