所需文件:
链接:https://pan.baidu.com/s/1X48lqf7lsyc_mBjOTT6Kow
提取码:lyp6
具体怎么使用需百度,或打开文件查看使用帮助
步骤:
root@svr-1:/var/www/git$ cd learngit/
root@svr-1:/var/www/git/learngit$ sudo git init --bare
Initialized empty Git repository in /var/www/git/learngit/
root@svr-1:/var/www/git/learngit$ sudo git config http.receivepack true
root@:/var/www/git/learngit$ sudo git config core.sharedRepository group
root@svr-1:/var/www/git/learngit$ sudo git update-server-info
root@svr-1:/var/www/git/learngit$ ls -ahl
total 40K
drwxr-xr-x 7 root root 4.0K Nov 15 00:19 .
drwxr-xr-x 3 root root 4.0K Nov 15 00:18 ..
drwxr-xr-x 2 root root 4.0K Nov 15 00:19 branches
-rw-r--r-- 1 root root 119 Nov 15 00:19 config
-rw-r--r-- 1 root root 73 Nov 15 00:19 description
-rw-r--r-- 1 root root 23 Nov 15 00:19 HEAD
drwxr-xr-x 2 root root 4.0K Nov 15 00:19 hooks
drwxr-xr-x 2 root root 4.0K Nov 15 00:19 info
drwxr-xr-x 4 root root 4.0K Nov 15 00:19 objects
drwxr-xr-x 4 root root 4.0K Nov 15 00:19 refs
root@svr-1:/var/www/git/learngit$ sudo chown -R www-data:www-data .
root@svr-1:/var/www/git/learngit$ sudo chmod -R 775 .
root@svr-1:/var/www/git/learngit$
来自X市的用户(2019-01-06)
评论暂不开放 ...