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
  • 61
  • 1
  • 8

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
  • 30,335
  • 25
  • 102
  • 137
Yue Lin Ho
  • 2,719
  • 25
  • 33