$ git status On branch feature/xxxxxx Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git checkout -- <file>..." to discard changes in working directory)
modified: package-lock.json
Untracked files: (use "git add <file>..." to include in what will be committed)
webroot/js/common.js // ←このファイルはgit diffに出てこない
1 2
// Untrackdなファイルをgit diffで見れるようにする $ git add -N .
1 2 3 4 5 6 7 8 9 10 11 12 13 14
$ git status On branch feature/xxxxxx Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git checkout -- <file>..." to discard changes in working directory)
modified: package-lock.json new file: webroot/js/common.js
no changes added to commit (use "git add" and/or "git commit -a")