I'm using GitHub Desktop to work with repos in Atlassian Stash. For publishing my own repos, I:
- Create a new empty repo in Stash
- Add my local directory in GitHub Desktop
- Set its origin to my Stash URL (under Repository > Repository Settings...)
- Publish
This works fine.
However, sometimes I simply want to clone existing Stash repos to my local machine. GitHub Desktop has a Clone option, of course, but it only works directly with your GitHub.com account; you can't enter an arbitrary URL to clone from. So instead, I thought I would be able to follow a procedure similar to what I use for publishing:
- Add a local empty directory
- Set its origin to the Stash URL
- Pull
But when I do this, I always get a "failed to get HEAD" error.
Why can't I simply pull a Stash repo locally?