Fix SourceTree cannot create repo

Hi All,

Seems that a few people had issues with getting SourceTree to set up the repos because the folder isn’t empty. Now, that’s a problem because if you create an empty folder, you can create the repo, but then you can’t tell Unity to create the folder there either.

Here’s what I did:

Create an account on BitBucket.org
Login to BitBucket.ord and create a new repository there.
Install SourceTree and add your BitBucket credentials.
In a new tab, select “Remote” and then F5 to refresh.
Find your remote repo in the list, right click and select Clone.
Change the destination path if required, then click Clone
You will now have an empty repo on your local drive with a hidden .git folder in it.
Create a new unity project. Set the folder path to desktop or documents.
Let Unity create the project and open, then just close it.
Move the new unity project folder into your empty repo folder from earlier.
Go to SourceTree. It will update the file list.
Select all of the files and click commit, then push.

Hope that helps!

Privacy & Terms