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.

 

Thanks

Roni

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

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

790 views 0 4
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