Window 7 Duplicate git clone issue

I recently updated and started having issues with two local git repositories that are identical. I have one on the master branch and another on different branch. They act as if they are communicating with each other and modify/delete files between the two even though they are both at the head of their branch.

4 answers

Did you clone one from the other locally, or both from the same remote source? When you clone locally git shares data storage between the 2 repositories using symlinks - however this shouldn't change what your working copy looks like or where your branches are pointing, it just means that commit objects may only be stored once.

Cloned from the same remote resource. I think it actually has something to do with having my home computer and work computer sharing the same files via dropbox. I use source tree on both and have all the same local repository listings. Do you think having them both open at the same time and making edits from one computer can cause issues? I do remember seeing both computers with the issue and having to reset to head commit.

Cloned from the same remote resource. I think it actually has something to do with having my home computer and work computer sharing the same files via dropbox. I use source tree on both and have all the same local repository listings. Do you think having them both open at the same time and making edits from one computer can cause issues? I do remember seeing both computers with the issue and having to reset to head commit.

I don't think it's really a good idea to have your git repo in a Dropbox folder, git is quite dynamic about the handling of files in there and although it theory it should all work, I'm not confident that there won't be side-effects in doing that.

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 ...

230 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