Borek Bernard
Borek Bernard

Reputation: 53251

In TortoiseGit, how do I "copy" certain files from a local branch?

I am developing in the 'master' branch and want to copy some files from 'feature-1'. How can I do that with TortoiseGit?

(I am not interested in command-line solutions.)

Upvotes: 6

Views: 4319

Answers (2)

Luis Hernandez
Luis Hernandez

Reputation: 628

I would like to add something. In my case I was looking for specific files located in different branches, so I had to add a search text in (1) and in (2) I selected Branch. Finally, for each file I selected Revert to this revision .

enter image description here

Upvotes: 0

jsvnm
jsvnm

Reputation: 696

  1. tortoisegit -> show log..
  2. in the upper part of window, select the commit (click all branches if necessary) you want the file from
  3. copy file(s) from revision to where?
    • into workdir: select the file(s) you want, right-click -> revert to this revision
    • single file anywhere: select single file, right-click -> save revision to...
    • many files (that are not same as in work dir) anywhere, with directories: right-click the commit, select Compare with working copy, select file(s), right-click, export selection to..."
    • everything in a single commit (as zip): right-click commit, select export this version..
    • ..or just use the command line, it's easier.

Upvotes: 10

Related Questions