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


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

Last-modified: 2018-08-04 (土) 21:01:19