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

后端 未结 4 1233
情深已故
情深已故 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条回答
  •  攒了一身酷
    2020-12-15 09:09

    This might seem quite trivial for the gurus, but is a minor revelation to me (I admit) - at least I just used it for the first time now and it works (without custom aliases): Just use a semicolon ; and it'll work as a one-liner:

    git add --all; git commit -m "some informative commit message"

提交回复
热议问题