'How to create bare repository with pack-refs?
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?
Solution 1:[1]
packed-refs files would only happen once:
- you have added some files and make some commits
- a
git gc
is done (which callsgit repack
)
An initial empty (bare or not) repository would therefore understandably do not have any packed files.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | VonC |