How to use git to turn an existing directory into a warehouse
给我你的怀抱2017-05-02 09:49:13
0
2
737
There is a folder A on the server side with many files in it. I want to turn it into a warehouse (that is, it contains a .git), but I entered git --bare init in the B.git folder. How can I use A as a warehouse? B's warehouse? ?
First move out all the files in the A folder, initialize it into a warehouse and then move it in
The B.git folder has been init
I want the A folder on the server side to be used as a warehouse
A serves as B’s warehouse
References