Pro Git 2nd Edition 2.1.413detail, and a lot more. This chapter will round out your knowledge of Git so that you are truly a master. Chapter 8 is about configuring your custom Git environment. This includes setting up hook scripts during a Git initiated edit. Your 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 after a clone, you should see something like this: $ git status On branch master Your branch is up-to-date with 'origin/master'. nothing to commit, working tree clean This means you have a clean working0 码力 | 501 页 | 17.96 MB | 1 年前3
Pro Git 2nd Edition 2.1.413detail, and a lot more. This chapter will round out your knowledge of Git so that you are truly a master. Chapter 8 is about configuring your custom Git environment. This includes setting up hook scripts during a Git initiated edit. Your 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 after a clone, you should see something like this: $ git status On branch master Your branch is up-to-date with 'origin/master'. nothing to commit, working tree clean This means you have a clean working0 码力 | 731 页 | 21.49 MB | 1 年前3
Pro Git 2nd Edition 2.1.413 detail, and a lot more. This chapter will round out your knowledge of Git so that you are truly a master. Chapter 8 is about configuring your custom Git environment. This includes setting up hook scripts during a Git initiated edit. Your 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 after a clone, you should see something like this: $ git status On branch master Your branch is up-to-date with 'origin/master'. nothing to commit, working tree clean This means you have a clean working0 码力 | 691 页 | 13.35 MB | 1 年前3
Pro Git 中文版 第2版 2.1.66status 命令查看哪些文件处于什么状态。 如果在克隆仓库后立即使用此命令,会看到类似这样的 输出: $ git status On branch master Your branch is up-to-date with 'origin/master'. nothing to commit, working directory clean 这说明你现在的工作目录相当干净。换句话说,所有已跟踪文件在上次提交后都未被更改过。 现在,分支名是“master”,这是 默认的分支名。 我们在 Git 分支 中会详细讨论分支和引用。 现在,让我们在项目下创建一个新的 README 文件。 如果之前并不存在这个文件,使用 git status 命令,你 将看到一个新的未跟踪文件: 31 $ echo 'My Project' > README $ git status On branch master Your branch branch is up-to-date with 'origin/master'. Untracked files: (use "git add..." to include in what will be committed) README nothing added to commit but untracked files present (use "git add" 0 码力 | 501 页 | 19.30 MB | 1 年前3
Pro Git 中文版 第2版 2.1.66status 命令查看哪些文件处于什么状态。 如果在克隆仓库后立即 使用此命令,会看到类似这样的输出: $ git status On branch master Your branch is up-to-date with 'origin/master'. nothing to commit, working directory clean 这说明你现在的工作目录相当干净。换句话说,所有已跟踪文件在上次提交后 现在,分 支名是“master”,这是默认的分支名。 我们在 Git 分支 中会详细讨论分支和 引用。 现在,让我们在项目下创建一个新的 README 文件。 如果之前并不存在这个文 件,使用 git status 命令,你将看到一个新的未跟踪文件: $ echo 'My Project' > README $ git status On branch master Your branch branch is up-to-date with 'origin/master'. Untracked files: (use "git add..." to include in what will be committed) README nothing added to commit but untracked files present (use "git add" 0 码力 | 670 页 | 13.59 MB | 1 年前3
Gitea v1.21.1 中文文档录 ${GOPATH//://bin:}/bin 添加到 $PATH 中。请参阅 Go 百科上关于 GOPATH 的词条。 接下来,安装 Node.js 和 npm, 这是构建 JavaScript 和 CSS 文件所需的。最低支持的 Node.js 版本是 16,建议使用最新的 LTS 版本。 注意:当执行需要外部工具的 make 任务(如 make misspell-check )时,Gitea 构建 使用源代码安装 - 26 - 本文档使用 书栈网 · BookStack.CN 构建 要从源代码进行构建,系统必须预先安装以下程序: go 1.20 或更高版本,请参阅 这里 node 16 或更高版本,并且安装 npm , 请参阅 这里 make , 请参阅 这里 为了尽可能简化编译过程,提供了各种 make任务。 根据你的构建需求,以下 tags 可以使用: sqlite_unlock_notify" make build build 目标分为两个子目标: make backend 需要 Go 1.20 或更高版本。 make frontend 需要 Node.js 16 或更高版本。 如果存在预构建的前端文件,可以仅构建后端: 1. TAGS="bindata" make backend 按照上述步骤完成后,工作目录中将会有一个 gitea0 码力 | 303 页 | 3.88 MB | 1 年前3
git 操作手册push.default simple #设置推送模式 nothing 直接push会出错,需要显式的指出推送的远程分支,例如 git push origin master current 推送时只会推送当前所在的分支到远程同名分支,如果远程分支不 存在相应的同名分支,则创建该分支 upstream 推送当前分支到它的upstream分支上,这个模式只适用于推送到与 有此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) new 0 码力 | 35 页 | 1.69 MB | 1 年前3
共 7 条
- 1













