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
The DevOps Handbooki. Pro – Allows work in parallel while minimizing potential breaking impacts to trunk ii. Con – Branch work, in isolation, becomes increasingly difficult to integrate and merge into trunk iii. Integration0 码力 | 8 页 | 23.08 KB | 6 月前3
共 2 条
- 1













