How do I add an exiting folder to a Stash Repo in Sourcetree without moving or copying the files?

I have a folder that I dont want to move or copy and I want to add to a new repository in Stash.  How do I do this in SourceTree because when I clone in SourceTree it requires a new empty folder.




1 answer

First, create a new repo on Stash through the web interface.  Hit "Clone" and copy the clone URL onto your clipboard, because you will need it in a moment.

On a Mac, File->New/Clone and select "Create local repository" and select the path to your directory.  Open your new repo from your shortcuts bar and go to Repository->Repository Settings to create the remote (pasting in its URL from your clipboard)

On a PC, File->New/Clone and select the "Create New Repository" tab.  Paste in the URL for the 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,214 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