1

I have install git and tortoisegit successfully create a bare repo

location of my network folder X:\Test\Test_Source\Test_repo\Test_Repo.git --> bare repo

These are the folder in my repo

1. A 2. B 3. C

How to checkout only folder B?

user3333603
  • 81
  • 1
  • 1
  • 10

1 Answers1

0

You could try these commands:

git config core.sparsecheckout true
echo want/checkout/path/ >> .git/info/sparse-checkout
git read-tree --reset -u HEAD

Note: TortoiseGit does not support it yet, see TortoiseGit issue 1599.

MrTux
  • 32,350
  • 30
  • 109
  • 146
Yue Lin Ho
  • 2,945
  • 26
  • 36