git: stage only new files

后端 未结 8 2137
走了就别回头了
走了就别回头了 2020-12-10 05:21

When I have:

  • dirty working directory,
  • dirty staging area,
  • and I copied some new files to the project,

how do I stage only the

相关标签:
8条回答
  • 2020-12-10 06:09

    To allow for files with special characters in their names, use the following alias:

    au = "!git ls-files -z -o --exclude-standard | xargs -0 git add; #"
    
    0 讨论(0)
  • 2020-12-10 06:19

    git add untracked

    0 讨论(0)
提交回复
热议问题