Network performance

SourceTree was working very fast for me completely locally. Thinking how to include team members, I attempted to put a set of files on the server and make a repository there and found it unbearably slow.

The documentation says to have repositories on the local drive. In a team environment, do the other developers clone from a first developer's repository? Once they do that, are there going to be performance problems as if the repository is on the LAN?

Thanks

Mike

5 answers

Welll. I have to amend that. Adding many files to the repository and then trying to stage them was slow. We have certain binary files. The problem seems to be with SourceTree attempting to diff them. Can we tell SourceTree not to diff specific files, but still track them/not ignore them?

OK. Even more info. One of the binary files was open exclusively. SourceTree was waiting for the file to be released, not trying to diff it. I could either remember that detail or SourceTree could give up after a few seconds and give an error message. Thank!

If you don't have a central server, then other developers should clone from each other. I have no experience with this type of configuration, but you won't have the same performance problems as before.

Keep in mind that when another developer clones your repository, yours becomes a "remote" (designed to be on the LAN or WAN), but a copy of the ENTIRE repository now exists on the developer's local machine. Commits, checkouts, merges, project trees, and status are all local-only operations. Pushes and pulls interact with remote repositories.

Check out Chapter 5 of the Git book.

Additionally, there is no reason you can't but a repository on a local server. But instead of interacting with the repository and its files directly (by mounting as local storage), you (and all other devs) should clone that repository over https or ssh. Then you have a local repository for standard operations, and push/pull from the centralized server to keep in sync.

Also, this is a separate question. Moving...

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

572 views 1 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