Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

tortoisegit

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.)

like image 877
Borek Bernard Avatar asked Aug 25 '10 10:08

Borek Bernard


1 Answers

  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.
like image 62
jsvnm Avatar answered Sep 22 '22 03:09

jsvnm