
Git
enlyhua
这个作者很懒,什么都没留下…
展开
-
7.gitweb
http://blog.youkuaiyun.com/fromcaolei/article/details/78530059?locationNum=4&fps=1https://git-scm.com/docs/gitweb.conf https://www.cnblogs.com/gtarcoder/p/5309229.htmlhttp://blog.youkuaiyun.com/iceteaset/a...转载 2018-02-27 13:29:43 · 144 阅读 · 0 评论 -
8.Gitosis
1.yum install python-setuptools2.git clone https://github.com/tv42/gitosis.githttps://git-scm.com/book/zh/v1/%E6%9C%8D%E5%8A%A1%E5%99%A8%E4%B8%8A%E7%9A%84-Git-Gitosis转载 2018-02-28 14:03:26 · 184 阅读 · 0 评论 -
2.与远程库的关联
1.添加远程仓库git initgit add README.mdgit commit -m "first commit"git remote add origin git@github.com:enlyhua/gitTest.gitgit push -u origin master //则可以使用 -u 参数指定一个默认主机,这样后面就可以不加任何参数使用git push,2.从远程...转载 2018-02-21 17:07:13 · 695 阅读 · 0 评论 -
3.Git 开源
1.参与别人的项目1.在 GitHub 上 fork 开源库 到自己的 GitHub2.从自己的GitHub clone 代码到本地3.修改,提交4.发起 pull requesthttps://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/00137628548491051ccfae...转载 2018-02-22 00:08:35 · 267 阅读 · 0 评论 -
4.gitignore
https://www.cnblogs.com/kevingrace/p/5690241.htmlhttps://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/0013758404317281e54b6f5375640abbb11e67be4cd49e0000https://www.jians...转载 2018-02-22 11:11:55 · 156 阅读 · 0 评论 -
1.基本命令
1.git diff 比较不同 git diff // 工作区与暂存区比较 git diff HEAD -- 文件名 //比较工作区与版本库的区别git diff --staged // 暂存区与版本库的比较2. git log 日志 git log git log --pretty=oneline // 显示一行 , full,short,fullergit log --graphg...转载 2018-02-21 11:02:10 · 208 阅读 · 0 评论 -
5.Git 服务器
1.安装 git2.为 git 创建用户,用户组groupadd gituseradd git -g git3.禁用 shell 登录改为 : /usr/bin/git-shell4.创建登录证书创建文件 /home/git/.ssh/authorized_keys//修改权限chmod 755 .ssh chmod 644 .ssh/authorized_keys5.将公钥导入 au...原创 2018-02-22 13:58:01 · 203 阅读 · 0 评论 -
6. Git 开启匿名访问
Nginx 版本1.创建空目录2.将nginx 虚拟机指向此目录3.开启挂钩 hook# 提前执行一次,以防等下测试的时候报错# 报错信息:fatal: http://192.168.1.105/test.git/info/refs not found: did you run git update-server-info on the server?sh hooks/post-update成...原创 2018-02-25 00:11:23 · 1231 阅读 · 0 评论 -
9. Git flow
1.三种广泛使用的工作流程:Git flow // 目标是一段时间以后产出一个新版本 master develop feature hotfix release Github flow // 立刻发布,对于"持续发布"的产品,可以说是最合适的流程 master production Gitlab flow // Gitlab flow 的最大原则...转载 2018-06-24 23:45:54 · 171 阅读 · 0 评论