git 操作手册user.name #查看用户名 ★以上3个范围的设置优先级: 本地设置 > 全局设置 > 系统设置 ★push.default配置项 # git config --local push.default simple #设置推送模式 nothing 直接push会出错,需要显式的指出推送的远程分支,例如 库和拉取数据的远程仓库不一 致,那么该模式会像current模式一样进行操作。因为该选项对于新 手来说是最安全的,所以在git 2.0中,simple是push.default的默认 值配置项(2.0以前的默认配置项是matching) matching 推送本地和远程都存在的同名分支 ★仓库操作 # mkdir ~/testgit #创建项目目录 #基于原有的old-tag创建新tag(可用于重命名,生 成新tag后,再删除旧的tag) ★git远程协作开发 远程协作的基本流程: ① 管理员在创建一个空的远程仓库(比如在gitlab上创建一个空的项目) ② 管理员创建一个待推送的本地仓库 ③ 管理员关联本地仓库与远程仓库 ④ 管理员在本地仓库中编辑代码,提交代码 ⑤ 管理员推送本地仓库代码到远程仓库 ⑥ 管理员邀请协作成员0 码力 | 35 页 | 1.69 MB | 1 年前3
Gitea v1.21.1 中文文档Gitea 命令行 环境变量清单 备份与恢复 Email 设置 Git LFS 设置 HTTPS配置 设置 Fail2ban 反向代理 嵌入资源提取工具 配置说明 日志配置 邮件模板 仓库索引器 GPG 提交签名 外部渲染器 搜索引擎索引 自定义 Gitea 配置 添加法律页面 使用 - 2 - 本文档使用 书栈网 · BookStack.CN 构建 Actions 平台软件。从开发计划到产品成型的整个软件生命周期,他都能够高效而轻松的帮 助团队和开发者。包括 Git 托管、代码审查、团队协作、软件包注册和 CI/CD。它与 GitHub、Bitbucket 和 GitLab 等比较类似。 Gitea 最初是从 Gogs 分支而来,几乎所有代码都已更改。对于我们Fork的原因可以看 这里。 Gitea的首要目标是创建一个极易安装,运行非常快速,安装和使用体验良好 此在性能方面表现出色,适用于资源有限的服务器环境。由于其轻量级设计,Gitea 在资源消耗方面相对较 低,可以在资源有限的环境下运行良好。 易于部署和维护: 轻松地部署在各种服务器上,不需要复杂的配置和依赖。这使得个人开发者或小团队可以方 便地设置和管理自己的 Git 服务。 安全性: Gitea 注重安全性,提供了用户权限管理、访问控制列表等功能,可以确保代码和数据的安全性。 代码评审:代码评审同时支持0 码力 | 303 页 | 3.88 MB | 1 年前3
Pro Git 中文版 第2版 2.1.66. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 初次运行 Git 前的配置. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110 配置服务器 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116 GitLab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 501 页 | 19.30 MB | 1 年前3
Pro Git 中文版 第2版 2.1.66Git 一般只添加数据 三种状态 命令行 安装 Git 在 Linux 上安装 在 macOS 上安装 在 Windows 上安装 从源代码安装 初次运行 Git 前的配置 用户信息 文本编辑器 检查配置信息 获取帮助 总结 Git 基础 获取 Git 仓库 在已存在目录中初始化仓库 克隆现有的仓库 记录每次更新到仓库 检查当前文件状态 跟踪新文件 暂存已修改的文件 协议 本地协议 HTTP 协议 SSH 协议 Git 协议 在服务器上搭建 Git 把裸仓库放到服务器上 小型安装 生成 SSH 公钥 配置服务器 Git 守护进程 Smart HTTP GitWeb GitLab 安装 管理 基本用途 一起工作 第三方托管的选择 总结 分布式 Git 分布式工作流程 集中式工作流 集成管理者工作流 主管与副主管工作流 在主题分支中工作 应用来自邮件的补丁 检出远程分支 确定引入了哪些东西 将贡献的工作整合进来 为发布打标签 生成一个构建号 准备一次发布 制作提交简报 总结 GitHub 账户的创建和配置 SSH 访问 头像 邮件地址 两步验证 对项目做出贡献 派生项目 GitHub 流程 拉取请求的进阶用法 GitHub 风格的 Markdown 让你的 GitHub 公共仓库保持更新0 码力 | 670 页 | 13.59 MB | 1 年前3
Pro Git 2nd Edition 2.1.413. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 GitLab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . manpages and this book aren’t enough and you need in-person help, you can try the #git, #github, or #gitlab channels on the Libera Chat IRC server, which can be found at https://libera.chat/. These channels branch-name, while keeping all history. You also want to change the branch name on the remote (GitHub, GitLab, other server). How do you do this? Rename the branch locally with the git branch --move command:0 码力 | 501 页 | 17.96 MB | 1 年前3
Pro Git 2nd Edition 2.1.413Small Setups Generating Your SSH Public Key Setting Up the Server Git Daemon Smart HTTP GitWeb GitLab Installation Administration Basic Usage Working Together Third Party Hosted Options Summary manpages and this book aren’t enough and you need in- person help, you can try the #git, #github, or #gitlab channels on the Libera Chat IRC server, which can be found at https://libera.chat/. These channels corrected-branch-name, while keeping all history. You also want to change the branch name on the remote (GitHub, GitLab, other server). How do you do this? Rename the branch locally with the git branch --move command:0 码力 | 731 页 | 21.49 MB | 1 年前3
Pro Git 2nd Edition 2.1.413 Small Setups Generating Your SSH Public Key Setting Up the Server Git Daemon Smart HTTP GitWeb GitLab Installation Administration Basic Usage Working Together Third Party Hosted Options Summary manpages and this book aren’t enough and you need in-person help, you can try the #git, #github, or #gitlab channels on the Libera Chat IRC server, which can be found at https://libera.chat/. These channels corrected-branch-name, while keeping all history. You also want to change the branch name on the remote (GitHub, GitLab, other server). How do you do this? Rename the branch locally with the git branch --move command:0 码力 | 691 页 | 13.35 MB | 1 年前3
共 7 条
- 1













