Git commit -a “untracked files”?

后端 未结 7 2101
慢半拍i
慢半拍i 2020-12-12 13:54

When I do a git commit -a, I am seeing the following:

  # Please enter the commit message for your changes. Lines starting
  # with \'#\' will          


        
7条回答
  •  再見小時候
    2020-12-12 14:53

    For others having the same problem, try running

    git add . which will add all files of the current directory to track (including untracked) and then use

    git commit -a to commit all tracked files.

    As suggested by @Pacerier, one liner that does the same thing is

    git add -A

提交回复
热议问题