git: stage only new files

后端 未结 8 2163
走了就别回头了
走了就别回头了 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; #"
    

提交回复
热议问题