Untrackedファイルだけ取得git ls-files --others --exclude-standard UntrackedなファイルをAddする (PowerShell)PS> git ls-files --others --exclude-standard 1.txt 2.txt 3.txt PS> git add (git ls-files --others --exclude-standard) PS> git status new file: 1.txt new file: 2.txt new file: 3.txt UntrackedなファイルをAddする (Bash)$ git add $(git ls-files -o --exclude-standard) 参考https://stackoverflow.com/questions/3801321/git-list-only-untracked-files-also-custom-commands |
|