nothing to commit, working directory clean P.S:Wokring directory clean 意謂著⽬目前的⼯工作⽬目錄沒有未被追蹤或已被修改的檔案。 加入⼀一個檔案: $ vim README $ git status On branch master Untracked files: (use "git add <file>..." to include in what will be committed) README ….
status On branch master Changes to be committed: (use "git reset HEAD <file>..." to unstage) new file: README P.S:若若出現Changes not staged for commit。代表著這個檔案已被追蹤,⽽而且 位於⼯工作⽬目錄的該檔案已被修改,但尚未暫存。開發者要透過git add來來暫存檔 案。若若要加入全部,可採⽤用以下⽅方式: $ git add . $ git add --all
<branch_fix> Auto-merging index.html CONFLICT (content): Merge conflict in index.html Automatic merge failed; fix conflicts and then commit the result. $ git status On branch master You have unmerged paths. (fix conflicts and run "git commit") Unmerged paths: (use "git add <file>..." to mark resolution) both modified: index.html git mergetool,它會調⽤用⼀一個視覺化的合併⼯工具並引導你解決所有衝突