Clone with --bare option

I'm able to clone a repository using SourceTree, but I'm not seeing a cloning option in the GUI to clone with the --bare option.  

1 answer

1 accepted

That's because there's not one.

A bare repository doesn't have a working copy, which is not typically what people want in a user-focused repository, seeing as it makes most of the GUI operations pointless (Commit, Checkout, Merge, Pull, for example).

Furthermore, if you know enough about what you're doing to know what --bare means, then you know enough to launch the terminal and write the clone command yourself. There are enough "computer illiterate" SourceTree users that providing a bare option in the GUI would be a BAD idea. ("I just cloned my repository, but I only have a .git folder!! Where are my files?!?! UNINSTALL!!!111") Those folks aren't going to "accidentally" go to the command line and "accidentally" add --bare to a valid clone command.

I see.   Thanks for the quick answer.    Well, I won't waste your time with an explanation as to why I want to create a bare repository.  It's not important as I understand what you're saying from a UI design standpoint.   On the other hand a simple ability to add git options (for those with such understanding) to a clone command would've made the question unnecessary.

Yes, I can do it with the command line interface.  Unfortunately, I'm being greeted with authentication request when my key has no password.   Guess I need to resolve that issue first.

Thanks again, Seth.

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

647 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