I have a fairly large repository that I am working with and I would like to pull just a single file from the repository and not the full repository itself. I did not know if this was possible using SourceTree.
You can not do this with Sourcetree but with git commandline, using the command git archive.
To be able to use git archive your repository server needs to support this as well, Using Bitbucket Server as repository host, you need to have installed the plugin https://marketplace.atlassian.com/plugins/com.atlassian.stash.plugin.stash-archive/server/overview on your Bitbucket server.
Having installed this plugin on your Bitbucket server, you are able to retrieve a single file:
git archive –remote ssh://email@example.com:7999/bma/uploadadditional.git HEAD README.md
The main restriction is you have to use the SSH-Protocol with this (no HTTP-Protocol support)
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...
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!
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