Can I retrieve / download files from a specific commit?
I don't want to set the commit in question as current version.
If I select all the files I want, the only option on right-click is "Open Current Version".
If I select one file - which would be a pain - I have "Open Selected Version" on right-click - but nothing happens.
There is a clean and easy way to do this in Sourcetree without checking out:
Why would you deny to checkout the commit as current version?
That's one of the main purposes of a VCS: Switch the version simply and fast ....
Just as a recipe for simple getting the desired version of your files:
Thanks for (an extremely) quick reply..
Perhaps I am misunderstanding, but this particular version is not the current version, and would not work, and if any other user would "pull" he would get an obsolete version.
I am tracing changes for some historic documentation - so I don't want to see this in the history or trouble other users.
Just moved to Git from SubVersion, there I could, using Tortoise, easily select a specific commit and download.. is this really not possible?
Using SourceTree, not command line..
I don't understand your question ...
Maybe you have not fully understood the concepts of a distributed VCS or you choose a wrong/misleading wording: @Valgardur Gudjonsson wrote: "easily select a specific commit and download.".
So the way to go is:
So you don't "download a commit of a single file": 1.) pull gets ("downloads") the complete repository, 2.) checking out a commit reconstructs the file constellation/versions of all files at the time of the commit.
I tried to describe the following in my answer:
Thanks for a detailed reply, but I guess I did not explain my problem well enough or perhaps I used misleading words..
I do understand how git works, this was just an apparent bug in SourceTree, and perhaps a feature request/suggestion as well.
I installed a different tool (instead of SourceTree) and my problem was solved.
Anyway, thanks for your reply.
A vulnerability has been published today in regards to Sourcetree for Windows. The goal of this article is to give you a summary of information we have gathered from Atlassian Community as a st...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events