随笔分类 -  Git

摘要:1. git fetch 此操作主要是实现把远程服务器仓库的修改同步至本地仓库,但是不会更新本地仓库已经checkout出来的文件; 2.git checkout origin/master -- path/to/file 此操作用于从本地仓库中把指定文件给checkout出来。 阅读全文
posted @ 2022-06-01 15:21 百事可口 阅读(189) 评论(0) 推荐(0)
摘要:参考:https://www.cnblogs.com/huoshantian/p/12848706.html 总结 环境: centos git>1.8.1 mysql 1.官网安装文档 https://gogs.io/docs/installation/install_from_binary 一定 阅读全文
posted @ 2021-07-27 23:00 百事可口 阅读(156) 评论(0) 推荐(0)
摘要:参考:http://www.cnblogs.com/dee0912/p/5815267.html 安装git服务 特别注意 目录 和权限 区分git用户目录【/home/git/】和git仓库自定义目录【/home/data/git/】 当然 git用户不一定是git名称; 如果你的SSH端口不是默 阅读全文
posted @ 2018-07-04 16:04 百事可口 阅读(227) 评论(0) 推荐(0)