 Pro Git 2nd Edition 2.1.413Changes Skipping the Staging Area Removing Files Moving Files Viewing the Commit History Limiting Log Output Undoing Things Unstaging a Staged File Unmodifying a Modified File Undoing things with git 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 Distributed CONTRIBUTING Project Administration Managing an organization Organization Basics Teams Audit Log Scripting GitHub Services and Hooks The GitHub API Basic Usage Commenting on an Issue Changing0 码力 | 731 页 | 21.49 MB | 1 年前3 Pro Git 2nd Edition 2.1.413Changes Skipping the Staging Area Removing Files Moving Files Viewing the Commit History Limiting Log Output Undoing Things Unstaging a Staged File Unmodifying a Modified File Undoing things with git 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 Distributed CONTRIBUTING Project Administration Managing an organization Organization Basics Teams Audit Log Scripting GitHub Services and Hooks The GitHub API Basic Usage Commenting on an Issue Changing0 码力 | 731 页 | 21.49 MB | 1 年前3
 Pro Git 2nd Edition 2.1.413 Changes Skipping the Staging Area Removing Files Moving Files Viewing the Commit History Limiting Log Output Undoing Things Unstaging a Staged File Unmodifying a Modified File Undoing things with git 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 Distributed CONTRIBUTING Project Administration Managing an organization Organization Basics Teams Audit Log Scripting GitHub Services and Hooks The GitHub API Basic Usage Commenting on an Issue Changing0 码力 | 691 页 | 13.35 MB | 1 年前3 Pro Git 2nd Edition 2.1.413 Changes Skipping the Staging Area Removing Files Moving Files Viewing the Commit History Limiting Log Output Undoing Things Unstaging a Staged File Unmodifying a Modified File Undoing things with git 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 Distributed CONTRIBUTING Project Administration Managing an organization Organization Basics Teams Audit Log Scripting GitHub Services and Hooks The GitHub API Basic Usage Commenting on an Issue Changing0 码力 | 691 页 | 13.35 MB | 1 年前3
 Pro Git 2nd Edition 2.1.413Git itself; for more information on it, go to https://gitforwindows.org. To get an automated installation you can use the Git Chocolatey package. Note that the Chocolatey package is community maintained add or even show you as being untracked. These are generally automatically generated files such as log files or files produced by your build system. In such cases, you can create a file listing patterns which is used by many text editors such as Emacs to mark temporary files. You may also include a log, tmp, or pid directory; automatically generated documentation; and so on. Setting up a .gitignore0 码力 | 501 页 | 17.96 MB | 1 年前3 Pro Git 2nd Edition 2.1.413Git itself; for more information on it, go to https://gitforwindows.org. To get an automated installation you can use the Git Chocolatey package. Note that the Chocolatey package is community maintained add or even show you as being untracked. These are generally automatically generated files such as log files or files produced by your build system. In such cases, you can create a file listing patterns which is used by many text editors such as Emacs to mark temporary files. You may also include a log, tmp, or pid directory; automatically generated documentation; and so on. Setting up a .gitignore0 码力 | 501 页 | 17.96 MB | 1 年前3
 Gitea v1.21.1 中文文档行开发和改进,同时也积极接受社区贡献,保持了平台的更新和创新。 多语言支持: Gitea 提供多种语言界面,适应全球范围内的用户,促进了国际化和本地化。 更多功能特性:详见:https://docs.gitea.com/installation/comparison#general-features 树莓派Pi3功能强大,足以运行 Gitea 来处理小型工作负载。 关于Gitea 目标 功能特性 系统要求 Gitea是什么 --home-dir /home/git \ 19. --create-home \ 20. git 1. mkdir -p /var/lib/gitea/{custom,data,log} 2. chown -R git:git /var/lib/gitea/ 3. chmod -R 750 /var/lib/gitea/ 4. mkdir /etc/gitea 5. chown supervisor 配置日志路径: 1. # assuming gitea is installed in /home/git/gitea/ 2. mkdir /home/git/gitea/log/supervisor 在文件编辑器中打开 supervisor 的配置文件: 1. sudo vim /etc/supervisor/supervisord.conf 增加如下示例配置 supervisord0 码力 | 303 页 | 3.88 MB | 1 年前3 Gitea v1.21.1 中文文档行开发和改进,同时也积极接受社区贡献,保持了平台的更新和创新。 多语言支持: Gitea 提供多种语言界面,适应全球范围内的用户,促进了国际化和本地化。 更多功能特性:详见:https://docs.gitea.com/installation/comparison#general-features 树莓派Pi3功能强大,足以运行 Gitea 来处理小型工作负载。 关于Gitea 目标 功能特性 系统要求 Gitea是什么 --home-dir /home/git \ 19. --create-home \ 20. git 1. mkdir -p /var/lib/gitea/{custom,data,log} 2. chown -R git:git /var/lib/gitea/ 3. chmod -R 750 /var/lib/gitea/ 4. mkdir /etc/gitea 5. chown supervisor 配置日志路径: 1. # assuming gitea is installed in /home/git/gitea/ 2. mkdir /home/git/gitea/log/supervisor 在文件编辑器中打开 supervisor 的配置文件: 1. sudo vim /etc/supervisor/supervisord.conf 增加如下示例配置 supervisord0 码力 | 303 页 | 3.88 MB | 1 年前3
 Pro Git 中文版 第2版 2.1.66结尾的文件。一般这类对象文件和存档文件都是编译过程中出现的。 第二 行告诉 Git 忽略所有名字以波浪符(~)结尾的文件,许多文本编辑软件(比如 Emacs)都用这样的文件名保存 副本。 此外,你可能还需要忽略 log,tmp 或者 pid 目录,以及自动生成的文档等等。 要养成一开始就为你的 新仓库设置好 .gitignore 文件的习惯,以免将来误提交这类无用的文件。 文件 .gitignore 的格式规范如下: git rm 命令后面可以列出文件或者目录的名字,也可以使用 glob 模式。比如: $ git rm log/\*.log 注意到星号 * 之前的反斜杠 \, 因为 Git 有它自己的文件模式扩展匹配方式,所以我们不用 shell 来帮忙展开。 此命令删除 log/ 目录下扩展名为 .log 的所有文件。 类似的比如: $ git rm \*~ 该命令会删除所有名字以 ~ 结尾的文件。 移动文件 完成这个任务最简单而又有效的 工具是 git log 命令。 我们使用一个非常简单的 ``simplegit'' 项目作为示例。 运行下面的命令获取该项目: $ git clone https://github.com/schacon/simplegit-progit 当你在此项目中运行 git log 命令时,可以看到下面的输出: 43 $ git log commit ca82a6dff810 码力 | 501 页 | 19.30 MB | 1 年前3 Pro Git 中文版 第2版 2.1.66结尾的文件。一般这类对象文件和存档文件都是编译过程中出现的。 第二 行告诉 Git 忽略所有名字以波浪符(~)结尾的文件,许多文本编辑软件(比如 Emacs)都用这样的文件名保存 副本。 此外,你可能还需要忽略 log,tmp 或者 pid 目录,以及自动生成的文档等等。 要养成一开始就为你的 新仓库设置好 .gitignore 文件的习惯,以免将来误提交这类无用的文件。 文件 .gitignore 的格式规范如下: git rm 命令后面可以列出文件或者目录的名字,也可以使用 glob 模式。比如: $ git rm log/\*.log 注意到星号 * 之前的反斜杠 \, 因为 Git 有它自己的文件模式扩展匹配方式,所以我们不用 shell 来帮忙展开。 此命令删除 log/ 目录下扩展名为 .log 的所有文件。 类似的比如: $ git rm \*~ 该命令会删除所有名字以 ~ 结尾的文件。 移动文件 完成这个任务最简单而又有效的 工具是 git log 命令。 我们使用一个非常简单的 ``simplegit'' 项目作为示例。 运行下面的命令获取该项目: $ git clone https://github.com/schacon/simplegit-progit 当你在此项目中运行 git log 命令时,可以看到下面的输出: 43 $ git log commit ca82a6dff810 码力 | 501 页 | 19.30 MB | 1 年前3
 Pro Git 中文版 第2版 2.1.66git reset git rm git mv git clean 分支与合并 git branch git checkout git merge git mergetool git log git stash git tag 项目分享与更新 git fetch git pull git push git remote git archive git submodule 结尾的文件。一般这类对象文件和存档文 件都是编译过程中出现的。 第二行告诉 Git 忽略所有名字以波浪符(~)结尾 的文件,许多文本编辑软件(比如 Emacs)都用这样的文件名保存副本。 此 外,你可能还需要忽略 log,tmp 或者 pid 目录,以及自动生成的文档等等。 要养成一开始就为你的新仓库设置好 .gitignore 文件的习惯,以免将来误提交 这类无用的文件。 文件 .gitignore 的格式规范如下: rm 命令后面可以列出文件或者目录的名字,也可以使用 glob 模式。比 如: $ git rm log/\*.log 注意到星号 * 之前的反斜杠 \, 因为 Git 有它自己的文件模式扩展匹配方式, 所以我们不用 shell 来帮忙展开。 此命令删除 log/ 目录下扩展名为 .log 的所 有文件。 类似的比如: $ git rm \*~ 该命令会删除所有名字以 ~ 结尾的文件。0 码力 | 670 页 | 13.59 MB | 1 年前3 Pro Git 中文版 第2版 2.1.66git reset git rm git mv git clean 分支与合并 git branch git checkout git merge git mergetool git log git stash git tag 项目分享与更新 git fetch git pull git push git remote git archive git submodule 结尾的文件。一般这类对象文件和存档文 件都是编译过程中出现的。 第二行告诉 Git 忽略所有名字以波浪符(~)结尾 的文件,许多文本编辑软件(比如 Emacs)都用这样的文件名保存副本。 此 外,你可能还需要忽略 log,tmp 或者 pid 目录,以及自动生成的文档等等。 要养成一开始就为你的新仓库设置好 .gitignore 文件的习惯,以免将来误提交 这类无用的文件。 文件 .gitignore 的格式规范如下: rm 命令后面可以列出文件或者目录的名字,也可以使用 glob 模式。比 如: $ git rm log/\*.log 注意到星号 * 之前的反斜杠 \, 因为 Git 有它自己的文件模式扩展匹配方式, 所以我们不用 shell 来帮忙展开。 此命令删除 log/ 目录下扩展名为 .log 的所 有文件。 类似的比如: $ git rm \*~ 该命令会删除所有名字以 ~ 结尾的文件。0 码力 | 670 页 | 13.59 MB | 1 年前3
 git 操作手册#将暂存区提交到仓库区(commit为提交操作),- m后指定本次提交的说明信息 1 file changed, 1 inser�on(+) create mode 100644 main.py # git log #查看提交记录;显示完整的hash值 commit 7b8ff6902bf14780a413a021cc1d946fd82fa82e (HEAD -> #提交的说明信息 # git log --oneline #同上,提交记录以一行显示一次提交;只显示hash 值前6个字符 7b8ff69 (HEAD -> master) msgxxx # git log 文件名 #查看目标文件的提交记录 # git log -p -3 是让HEAD指向不同的分支。每次有新的 提交时,HEAD都会自动指向最新的提交。 首次创建分支前,得先进行一次提交,否则git无法创建分支(因为分支是基于 提交去创建的)。 # git log --decorate --graph --all #查看整个项目的分支图 # git branch #查看分支列表,默认只有一个分支,分支名默认为0 码力 | 35 页 | 1.69 MB | 1 年前3 git 操作手册#将暂存区提交到仓库区(commit为提交操作),- m后指定本次提交的说明信息 1 file changed, 1 inser�on(+) create mode 100644 main.py # git log #查看提交记录;显示完整的hash值 commit 7b8ff6902bf14780a413a021cc1d946fd82fa82e (HEAD -> #提交的说明信息 # git log --oneline #同上,提交记录以一行显示一次提交;只显示hash 值前6个字符 7b8ff69 (HEAD -> master) msgxxx # git log 文件名 #查看目标文件的提交记录 # git log -p -3 是让HEAD指向不同的分支。每次有新的 提交时,HEAD都会自动指向最新的提交。 首次创建分支前,得先进行一次提交,否则git无法创建分支(因为分支是基于 提交去创建的)。 # git log --decorate --graph --all #查看整个项目的分支图 # git branch #查看分支列表,默认只有一个分支,分支名默认为0 码力 | 35 页 | 1.69 MB | 1 年前3
共 7 条
- 1














 
 