忘记密码   免费注册 查看新帖 | 论坛精华区

ChinaUnix.net

  平台 论坛 博客 认证专区 大话IT 视频 徽章 文库 沙龙 自测 下载 频道自动化运维 虚拟化 储存备份 C/C++ PHP MySQL 嵌入式 Linux系统
最近访问板块 发新帖
查看: 584 | 回复: 0

git客户端无法上传文件 [复制链接]

论坛徽章:
6
操作系统版块每日发帖之星
日期:2015-06-16 22:20:00IT运维版块每日发帖之星
日期:2015-06-17 22:20:00IT运维版块每周发帖之星
日期:2016-01-07 23:04:26操作系统版块每日发帖之星
日期:2016-05-17 06:20:00操作系统版块每日发帖之星
日期:2016-05-21 06:20:00操作系统版块每日发帖之星
日期:2016-07-05 06:20:00
发表于 2016-06-22 12:50 |显示全部楼层
========================
                   服务器端
========================

[root@localhost git-test]# git init --bare devops.git
Initialized empty Git repository in /opt/git/git-test/devops.git/
[root@localhost git-test]# ls -la
total 12
drwxr-xr-x. 3 apache apache 4096 Jun 22 12:18 .
drwxr-xr-x. 3 root   root   4096 Jun 22 11:47 ..
drwxr-xr-x. 7 root   root   4096 Jun 22 12:18 devops.git
[root@localhost git-test]#
[root@localhost devops.git]# ls -lhtr
total 32K
drwxr-xr-x. 4 root root 4.0K Jun 22 12:18 refs
drwxr-xr-x. 2 root root 4.0K Jun 22 12:18 hooks
drwxr-xr-x. 2 root root 4.0K Jun 22 12:18 info
-rw-r--r--. 1 root root   73 Jun 22 12:18 description
drwxr-xr-x. 2 root root 4.0K Jun 22 12:18 branches
-rw-r--r--. 1 root root   23 Jun 22 12:18 HEAD
-rw-r--r--. 1 root root   66 Jun 22 12:18 config
drwxr-xr-x. 4 root root 4.0K Jun 22 12:18 objects
[root@localhost devops.git]#
-------------------------------------> git版本库已经创建成功


========================
                   客户端
========================

devops-win-test01@nextop-WINserve MINGW64 /d/china-test-git
$ git clone http://192.168.88.190/git/git-test/devops.git
Cloning into 'devops'...
Username for 'http://192.168.88.190': china
warning: You appear to have cloned an empty repository.
Checking connectivity... done.

devops-win-test01@nextop-WINserve MINGW64 /d/china-test-git
$
-------------------------------------> 客户端可以正常下载git版本库


devops-win-test01@nextop-WINserve MINGW64 /d/china-test-git
$ ls -al
total 4
drwxr-xr-x 1 devops-win-test01 197121 0 六月 22 12:43 ./
drwxr-xr-x 1 devops-win-test01 197121 0 六月 22 12:19 ../
drwxr-xr-x 1 devops-win-test01 197121 0 六月 22 12:41 devops/

devops-win-test01@nextop-WINserve MINGW64 /d/china-test-git
$ cd devops

devops-win-test01@nextop-WINserve MINGW64 /d/china-test-git/devops (master)
$ ls -la
total 4
drwxr-xr-x 1 devops-win-test01 197121 0 六月 22 12:41 ./
drwxr-xr-x 1 devops-win-test01 197121 0 六月 22 12:43 ../
drwxr-xr-x 1 devops-win-test01 197121 0 六月 22 12:41 .git/

devops-win-test01@nextop-WINserve MINGW64 /d/china-test-git/devops (master)
$ touch china.txt

devops-win-test01@nextop-WINserve MINGW64 /d/china-test-git/devops (master)
$ git add china.txt

devops-win-test01@nextop-WINserve MINGW64 /d/china-test-git/devops (master)
$ git status
On branch master

Initial commit

Changes to be committed:
  (use "git rm --cached <file>..." to unstage)

        new file:   china.txt


devops-win-test01@nextop-WINserve MINGW64 /d/china-test-git/devops (master)
$
$ git commit -m "test"
[master (root-commit) 990672f] test
Committer: devops-win-test01 <devops-win-test01>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly. Run the
following command and follow the instructions in your editor to edit
your configuration file:

    git config --global --edit

After doing this, you may fix the identity used for this commit with:

    git commit --amend --reset-author

1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 china.txt

devops-win-test01@nextop-WINserve MINGW64 /d/china-test-git/devops (master)
$ git push
Username for 'http://192.168.88.190': china
Counting objects: 3, done.
Writing objects: 100% (3/3), 200 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
error: unpack failed: unpack-objects abnormal exit
To http://192.168.88.190/git/git-test/devops.git
! [remote rejected] master -> master (n/a (unpacker error))
error: failed to push some refs to 'http://192.168.88.190/git/git-test/devops.git'

devops-win-test01@nextop-WINserve MINGW64 /d/china-test-git/devops (master)
$
-------------------------------------> 客户端可以无法正常上传数据



请问大家这是为什么呢?谢谢!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

久等啦!10张门票开启你的DTCC2017之旅

2017中国数据库技术大会将于2017年5月11-13日如约而至,本届大会以“数据驱动•价值发现”为主题,共设定2大主场和21个技术专场,云集海内外120+位技术大牛,共同探讨Oracle、MySQL、NoSQL、云端数据库、区块链、深度学习等领域的前瞻性热点话题。
即日起,填写DTCC2017会前调查问卷,即有机会赢取价值2600元的大会门票1张!仅限10张!
----------------------------------------
活动截止时间:2017年5月5日统一公布

问卷入口>>
  

北京皓辰网域网络信息技术有限公司. 版权所有 京ICP证:060528号 北京市公安局海淀分局网监中心备案编号:1101082001
广播电视节目制作经营许可证(京) 字第1234号 中国互联网协会会员  联系我们:
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP