git 本地文件修改错误,重新取回服务器历史版本
摘要:1. 重新取回历史版本 git log git checkout (这里写 上面查询出来 commit 后面的哈希值) 2. 此时使用git push会碰到如下问题: $ git push fatal: You are not currently on a branch.To push the hi
阅读全文
posted @
2020-08-11 16:46
alantop
阅读(1278)
推荐(0)
git 永久记住密码
摘要:永久记住密码 git config --global credential.helper store
阅读全文
posted @
2020-03-13 10:25
alantop
阅读(235)
推荐(0)
centos7 安装 git服务器
摘要:服务器端配置 yum install -y git groupadd git useradd git -g git 2.创建authorized_keys cd /home/git mkdir .ssh chmod 700 .ssh touch .ssh/authorized_keys chmod
阅读全文
posted @
2019-12-04 11:21
alantop
阅读(457)
推荐(0)