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 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 Changing Introduction Signing Tags Verifying Tags Signing Commits Everyone Must Sign Searching Git Grep Git Log Searching Rewriting History Changing the Last Commit Changing Multiple Commit Messages Reordering0 码力 | 731 页 | 21.49 MB | 1 年前3Pro 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 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 Changing Introduction Signing Tags Verifying Tags Signing Commits Everyone Must Sign Searching Git Grep Git Log Searching Rewriting History Changing the Last Commit Changing Multiple Commit Messages Reordering0 码力 | 691 页 | 13.35 MB | 1 年前3Pro Git 2nd Edition 2.1.413
which is valuable no matter which Git host you decide to use for your own code. The other large change in the time since the last publishing has been the development and rise of the HTTP protocol for converting projects from other VCSs to Git. A lot of organizations still use SVN and are not about to change, but by this point you’ll have learned the incredible power of Git — and this chapter shows you checksummed before it is stored and is then referred to by that checksum. This means it’s impossible to change the contents of any file or directory without Git knowing about it. This functionality is built0 码力 | 501 页 | 17.96 MB | 1 年前3Pro Git 中文版 第2版 2.1.66
结尾的文件。一般这类对象文件和存档文件都是编译过程中出现的。 第二 行告诉 Git 忽略所有名字以波浪符(~)结尾的文件,许多文本编辑软件(比如 Emacs)都用这样的文件名保存 副本。 此外,你可能还需要忽略 log,tmp 或者 pid 目录,以及自动生成的文档等等。 要养成一开始就为你的 新仓库设置好 .gitignore 文件的习惯,以免将来误提交这类无用的文件。 文件 .gitignore 的格式规范如下: out why you're contributing in the first place, you're less likely to get feedback and have your change -merged in. +merged in. Also, split your changes into comprehensive chunks if your patch is +longer out why you're contributing in the first place, you're less likely to get feedback and have your change -merged in. +merged in. Also, split your changes into comprehensive chunks if your patch is +longer0 码力 | 501 页 | 19.30 MB | 1 年前3Pro Git 中文版 第2版 2.1.66
git 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 的格式规范如下: out why you're contributing in the first place, you're less likely to get feedback and have your change -merged in. +merged in. Also, split your changes into comprehensive chunks if your patch is +longer0 码力 | 670 页 | 13.59 MB | 1 年前3Gitea v1.21.1 中文文档
--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 增加如下示例配置 supervisord s 5. [picture] 6. AVATAR_UPLOAD_PATH = /home/:USER/gogs-data/avatars 7. [log] 8. ROOT_PATH = /home/:USER/gogs/log 到: 1. [database] 2. PATH = /home/:USER/gitea/data/:DATABASE.db 3. [attachment]0 码力 | 303 页 | 3.88 MB | 1 年前3git 操作手册
#将暂存区提交到仓库区(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