服务器端

cd Repo

git init --bare MISProject.git

Initialized empty Git repository in /opt/Repo/MISProject.git/

[root@localhost MISProject.git]# ll
total 32
drwxr-xr-x. 2 root root 4096 May 26 09:30 branches
-rw-r--r--. 1 root root 66 May 26 09:30 config
-rw-r--r--. 1 root root 73 May 26 09:30 description
-rw-r--r--. 1 root root 23 May 26 09:30 HEAD
drwxr-xr-x. 2 root root 4096 May 26 09:30 hooks
drwxr-xr-x. 2 root root 4096 May 26 09:30 info
drwxr-xr-x. 4 root root 4096 May 26 09:30 objects
drwxr-xr-x. 4 root root 4096 May 26 09:30 

原文地址:https://www.cnblogs.com/muyiyang/p/6907331.html