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:
Done!
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:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
.. or perhaps I didn't get your question correctly ...
Anyway: your problem is solved!
Cheers
Johannes
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Valgardur Gudjo : Can you please advise how you solved this problem. I reckon I have the same issue. Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.