Is it possible to skip the staging area and (also) commit untracked, new files to git?

后端 未结 4 1239
情深已故
情深已故 2020-12-15 08:57

Is it possible to skip the staging area and (also) commit untracked, new files to git in a single built-in, command-line command ? If not,

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-15 09:01

    Using the command below skips the staging area and commits directly from the working directory.

    git commit -a
    

    Note that you still need to add new untracked files.

提交回复
热议问题