* Untrackedファイルだけ取得 [#x64c6dc0]

 git ls-files --others --exclude-standard

*** UntrackedなファイルをAddする (PowerShell) [#x64e1387]

 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) [#jcffbb2d]

 $ git add $(git ls-files -o --exclude-standard)

** 参考 [#d9f5928c]

https://stackoverflow.com/questions/3801321/git-list-only-untracked-files-also-custom-commands

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS