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

234 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