Yanor.net/
Wiki
Blog
GitHub
Sandbox
開始行:
* 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ファイルだけ取得 [#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...
ページ名: