How to create bare repository with pack-refs?

253 Views Asked by At

I need to create bare repository with package-refs files. Command git init --bare create bare repository without pack-refs files. What I have to do?

1

There are 1 best solutions below

2
VonC On

packed-refs files would only happen once:

  • you have added some files and make some commits
  • a git gc is done (which calls git repack)

An initial empty (bare or not) repository would therefore understandably do not have any packed files.