git server 安装

本文档详细介绍了如何安装和配置Git服务器,并解决了常见的权限问题和推送错误。此外还提供了查看Git配置信息的方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1. git server安装
[url=http://feuyeux.iteye.com/blog/1797261]server安装[/url]

2. 安装时权限问题
chmod 600 ~/.ssh/id_rsa
chmod 644 ~/.ssh/known_hosts

3. git配置
[url=http://blog.youkuaiyun.com/joe_007/article/details/7276195]git配置[/url]

4. 更新时问题:找不到提交的版本

$ git push
No refs in common and none specified; doing nothing.
Perhaps you should specify a branch such as 'master'.
fatal: The remote end hung up unexpectedly
error: failed to push some refs to 'file:///xxxxxxx.git'

解决:

git push origin master


5. 查看git info
[code]cat .git/config[/code]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值