Gitea v1.21.1 中文文档
BookStack.CN 构建 致谢 当前文档 《Gitea v1.21.1 中文文档》 由 进击的皇虫 使用 书栈网(BookStack.CN) 进行构建,生成于 2024-04-30。 书栈网仅提供文档编写、整理、归类等功能,以及对文档内容的生成和导出工具。 文档内容由网友们编写和整理,书栈网难以确认文档内容知识点是否错漏。如果您在阅读文档获取知识的时候, 发现文档内容有不恰当的地方,请向我 发现文档内容有不恰当的地方,请向我们反馈,让我们共同携手,将知识准确、高效且有效地传递给每一个人。 同时,如果您在日常工作、生活和学习中遇到有价值有营养的知识文档,欢迎分享到书栈网,为知识的传承献上 您的一份力量! 如果当前文档生成时间太久,请到书栈网获取最新的文档,以跟上知识更新换代的步伐。 内容来源:Gitea https://about.gitea.cn/ 文档地址:https://www.bookstack.cn/books/gitea-1 分支而来,几乎所有代码都已更改。对于我们Fork的原因可以看 这里。 Gitea的首要目标是创建一个极易安装,运行非常快速,安装和使用体验良好 的自建 Git 服务。 采用Go作为后端语言,只需生成一个可执行程序即可。 支持 Linux, macOS 和 Windows等多平台, 支持主流的 x86,amd64、 ARM 和 PowerPC等架构。 代码托管:Gitea⽀持创建和管理仓库、0 码力 | 303 页 | 3.88 MB | 1 年前3Pro Git 中文版 第2版 2.1.66
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108 生成 SSH 公钥 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.1 协议 @wych42 @Geno1024 王波 @xinqiu @morefreeze 4.2 在服务器上搭建 Git @neo1218 @Geno1024 王波 @xinqiu 4.3 生成 SSH 公钥 @oranzhang @secondwtq @IceNature @jeffsui 4.4 配置服务器 @oranzhang @Geno1024 @IceNature @secondwtq 可以使用任何一个克隆下来的用户端来重建服务器上的仓库 (虽然可能会丢失某些服务器端的钩子(hook)设 置,但是所有版本的数据仍在,详见 在服务器上搭建 Git )。 克隆仓库的命令是 git clone <url> 。 比如,要克隆 Git 的链接库 libgit2,可以用下面的命令: $ git clone https://github.com/libgit2/libgit2 这会在当前目录下创建一个名为0 码力 | 501 页 | 19.30 MB | 1 年前3Pro Git 中文版 第2版 2.1.66
用变基解决变基 变基 vs. 合并 总结 服务器上的 Git 协议 本地协议 HTTP 协议 SSH 协议 Git 协议 在服务器上搭建 Git 把裸仓库放到服务器上 小型安装 生成 SSH 公钥 配置服务器 Git 守护进程 Smart HTTP GitWeb GitLab 安装 管理 基本用途 一起工作 第三方托管的选择 总结 分布式 Git 分布式工作流程 私有管理团队 派生的公开项目 通过邮件的公开项目 总结 维护项目 在主题分支中工作 应用来自邮件的补丁 检出远程分支 确定引入了哪些东西 将贡献的工作整合进来 为发布打标签 生成一个构建号 准备一次发布 制作提交简报 总结 GitHub 账户的创建和配置 SSH 访问 头像 邮件地址 两步验证 对项目做出贡献 派生项目 GitHub 流程 拉取请求的进阶用法 4.1 协议 @wych42 @Geno1024 王波 @xinqiu @morefreeze 4.2 在服务器上搭建 Git @neo1218 @Geno1024 王波 @xinqiu 4.3 生成 SSH 公钥 @oranzhang @secondwtq @IceNature @jeffsui 4.4 配置服务器 @oranzhang @Geno1024 @IceNature @secondwtq0 码力 | 670 页 | 13.59 MB | 1 年前3git 操作手册
本 地 设 置 信 息 保 存 在 项 目 目 录/.git/config文件里 # cd 项目目录 # git init #初始化仓库,将在当前路径下生成.git子目录,子目录里有 此git仓库的相关信息 # git config --local user.name cof #设置用户名 # git config ~/testgit #创建项目目录 # cd ~/testgit # git init #初始化仓库,将在当前路径下生成.git子目录,子目录里 有此git仓库的相关信息,初始化后要设置当前工作的用户名等相关信息,否则 使用全局设置 # git status #查看当前工作目录和暂存区的状态 #从远程代码库下载main分支的最新修改,若未 指定分支名,则默认拉取同本地分支名的分支 # git remote -v #查看当前仓库关联的远程代码库的URL # git remote rm rmtRepo #删除远程仓库 ★协作成员操作⑦到⑨,详见下一小节:克隆远程仓库 ★克隆远程仓库 # git0 码力 | 35 页 | 1.69 MB | 1 年前3Pro Git 2nd Edition 2.1.413
be there — see Getting Git on a Server for more details). You clone a repository with git clone <url>. For example, if you want to clone the Git linkable library called libgit2, you can do so like this: new remote Git repository as a shortname you can reference easily, run git remote add<url>: $ git remote origin $ git remote add pb https://github.com/paulboone/ticgit $ git remote -v origin com/paulboone/ticgit (push) Now you can use the string pb on the command line in lieu of the whole URL. For example, if you want to fetch all the information that Paul has but that you don’t yet have in 0 码力 | 731 页 | 21.49 MB | 1 年前3Pro Git 2nd Edition 2.1.413
be there — see Getting Git on a Server for more details). You clone a repository with git clone <url>. For example, if you want to clone the Git linkable library called libgit2, you can do so like this: new remote Git repository as a shortname you can reference easily, run git remote add<url>: $ git remote origin $ git remote add pb https://github.com/paulboone/ticgit $ git remote -v origin com/paulboone/ticgit (push) Now you can use the string pb on the command line in lieu of the whole URL. For example, if you want to fetch all the information that Paul has but that you don’t yet have in 0 码力 | 501 页 | 17.96 MB | 1 年前3Pro Git 2nd Edition 2.1.413
be there — see Getting Git on a Server for more details). You clone a repository with git clone <url>. For example, if you want to clone the Git linkable library called libgit2, you can do so like this: new remote Git repository as a shortname you can reference easily, run git remote add<url>: $ git remote origin $ git remote add pb https://github.com/paulboone/ticgit $ git remote -v origin com/paulboone/ticgit (push) Now you can use the string pb on the command line in lieu of the whole URL. For example, if you want to fetch all the information that Paul has but that you don’t yet have in 0 码力 | 691 页 | 13.35 MB | 1 年前3
共 7 条
- 1