Git 合计后冻结

Git freeze after total

我的 git 服务器有问题。我使用 the tutorial 在虚拟 Linux Debian 9 (Digital Ocean) 上创建了 git 服务器(通过一个简单的更改,我的 git 位于目录 /home/git/project 没有文件夹结尾名称 .git) 我创建了一个带有 php7.0proftpd 服务器的 apache2 服务器,但效果很好。现在我可以在我的 Windows 10 上使用 SourceTree 连接到服务器,并且我可以克隆,但是当我想要推送时它会冻结在总计线上。我没有任何大文件可以在 .doc 中推送我的游戏的一个文档,它小于 3MB。我等了一整夜,但它在这里不工作终端输出:

$ git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags --set-upstream origin master:master 
Pushing to git@255.255.255.255:/home/git/project ///////It's changed to fake IP 
git@255.255.255.255's password:
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 55.27 KiB | 1.73 MiB/s, done.
Total 3 (delta 1), reused 0 (delta 0)

我知道我做错了什么。文件夹由 root 创建,未授予 git 用户权限。所以他可以读取文件但不能保存和替换。使用 chmod 或删除 git 并由 git 用户创建,临时正常 shell。对我来说,第二个选项工作得很好。