Pro Git 2nd Edition 2.1.413on Windows Installing from Source First-Time Git Setup Your Identity Your Editor Your default branch name Checking Your Settings Getting Help Summary Git Basics Getting a Git Repository Initializing a Nutshell Creating a New Branch Switching Branches Basic Branching and Merging Basic Branching Basic Merging Basic Merge Conflicts Branch Management Changing a branch name Branching Workflows of a Pull Request Octokit Summary Git Tools Revision Selection Single Revisions Short SHA-1 Branch References RefLog Shortnames Ancestry References Commit Ranges Interactive Staging Staging and0 码力 | 731 页 | 21.49 MB | 1 年前3
Pro Git 2nd Edition 2.1.413 on Windows Installing from Source First-Time Git Setup Your Identity Your Editor Your default branch name Checking Your Settings Getting Help Summary Git Basics Getting a Git Repository Initializing a Nutshell Creating a New Branch Switching Branches Basic Branching and Merging Basic Branching Basic Merging Basic Merge Conflicts Branch Management Changing a branch name Branching Workflows of a Pull Request Octokit Summary Git Tools Revision Selection Single Revisions Short SHA-1 Branch References RefLog Shortnames Ancestry References Commit Ranges Interactive Staging Staging and0 码力 | 691 页 | 13.35 MB | 1 年前3
Pro Git 2nd Edition 2.1.413. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 Branch Management. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . default branch name By default Git will create a branch called master when you create a new repository with git init. From Git version 2.28 onwards, you can set a different name for the initial branch. To To set main as the default branch name do: $ git config --global init.defaultBranch main Checking Your Settings If you want to check your configuration settings, you can use the git config --list command0 码力 | 501 页 | 17.96 MB | 1 年前3
Pro Git 中文版 第2版 2.1.66签署提交 每个人必须签署 搜索 Git Grep Git 日志搜索 重写历史 修改最后一次提交 修改多个提交信息 重新排序提交 压缩提交 拆分提交 核武器级选项:filter-branch 重置揭密 三棵树 工作流程 重置的作用 通过路径来重置 压缩 检出 总结 高级合并 合并冲突 撤消合并 其他类型的合并 Rerere 使用 Git 调试 文件标注 git status git diff git difftool git commit 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 send-email git request-pull 外部系统 git svn git fast-import 管理 git gc git fsck git reflog git filter-branch 底层命令 许可证 本作品在“创作共用 署名-非商业性使用-相同方式共享 3.0 未本地化版本 (CC BY-NC-SA 3.0)” 许 可 协 议 下 授 权 。 要 阅 览 该 许0 码力 | 670 页 | 13.59 MB | 1 年前3
Pro Git 中文版 第2版 2.1.6626 $ git config --list user.name=John Doe user.email=johndoe@example.com color.status=auto color.branch=auto color.interactive=auto color.diff=auto ... 你可能会看到重复的变量名,因为 Git 会从不同的文件中读取同一个配置(例如:/etc/gitconfig 检查当前文件状态 可以用 git status 命令查看哪些文件处于什么状态。 如果在克隆仓库后立即使用此命令,会看到类似这样的 输出: $ git status On branch master Your branch is up-to-date with 'origin/master'. nothing to commit, working directory clean 这说明你现在的 如果之前并不存在这个文件,使用 git status 命令,你 将看到一个新的未跟踪文件: 31 $ echo 'My Project' > README $ git status On branch master Your branch is up-to-date with 'origin/master'. Untracked files: (use "git add..." to include 0 码力 | 501 页 | 19.30 MB | 1 年前3
git 操作手册有此git仓库的相关信息,初始化后要设置当前工作的用户名等相关信息,否则 使用全局设置 # git status #查看当前工作目录和暂存区的状态 On branch master No commits yet nothing to commit (create/copy files and use "git add" to track) # echo 'print("hello #提交当前工作目录的所有文件到暂存区(add为暂存操 作),命令最后有一个点. # git status #再次查看状态 On branch master No commits yet Changes to be commi�ed: (use "git rm --cached..." to unstage) #查看未暂存的修改,在工作目录增删改文件后,未add的 # git diff --cached #查看未提交的暂存 ★分支操作 分支(branch)的本质其实就是一个提交对象(commit),HEAD是一个指针, 它默认指向master分支,切换分支时就是让HEAD指向不同的分支。每次有新的 提交时,HEAD都会自动指向最新的提交。 0 码力 | 35 页 | 1.69 MB | 1 年前3
Gitea v1.21.1 中文文档你可以选择编译和安装的版本,当前有多个选择。 main 分支代表当前的开发版本。如果你想编译 main 版本, 你可以直接跳到 构建 部分。 如果你想编译带有标签的发行版本,可以使用以下命令签出: 1. git branch -a 2. git checkout v1.21.1 要验证一个拉取请求(Pull Request, PR),要先启用新的分支(其中 xyz 是 PR 的 ID;例如,对于 #2663,ID是 Access-Control-Allow-Origin 标头的值, 默认不提供。 警告:如果您不提供正确的值,这可能对您的网站造成危害。 DEFAULT_CLOSE_ISSUES_VIA_COMMITS_IN_ANY_BRANCH : false: 如果非默认分支上的提交将问题标记为已关闭,则 关闭该问题。 ENABLE_PUSH_CREATE_USER : false: 允许用户将本地存储库推送到Gitea,并为用户自动创建它们。 通过将存档文件放置在以仓库命名的目录中来添加前缀。 DISABLE_MIGRATIONS : false: 禁用迁移功能。 DISABLE_STARS : false: 禁用点赞功能。 DEFAULT_BRANCH : main: 所有仓库的默认分支名称。 ALLOW_ADOPTION_OF_UNADOPTED_REPOSITORIES : false: 允许非管理员用户认领未被认领的仓库。 AL0 码力 | 303 页 | 3.88 MB | 1 年前3
共 7 条
- 1













