a commit git 参数是什么意思_git commit -a 命令困惑

殷烨
2023-12-01

感谢各位,但是我这里环境比较恶劣,除了 http://book.douban.com/subject/6526452/ 这个链接 OK 外,其它的都无法访问。

@shaorui23 这个链接就是我的问题所在,它和 git 的帮助文档不一致。

@primemars 这个游戏刚刚玩过,做的很好,让我对 git 更了解了。:-)

@huacnlee -A ?

在我的版本中,没有 -A 这个参数

详见

$ git --version

git version 1.7.1

$ git commit -A

error: unknown switch `A'

usage: git commit [options] [--] ...

-q, --quiet be quiet

-v, --verbose be verbose

Commit message options

-F, --file read log from file

--author override author for commit

--date override date for commit

-m, --message

specify commit message

-c, --reedit-message

reuse and edit message from specified commit

-C, --reuse-message

reuse message from specified commit

--reset-author the commit is authored by me now (used with -C-c/--amend)

-s, --signoff add Signed-off-by:

-t, --template

use specified template file

-e, --edit force edit of commit

--cleanup how to strip spaces and #comments from message

--status include status in commit message template

Commit contents options

-a, --all commit all changed files

-i, --include add specified files to index for commit

--interactive interactively add files

-o, --only commit only specified files

-n, --no-verify bypass pre-commit hook

--dry-run show what would be committed

--short show status concisely

--porcelain show porcelain output format

-z, --null terminate entries with NUL

--amend amend previous commit

--no-post-rewrite bypass post-rewrite hook

-u, --untracked-files[=]

show untracked files, optional modes: all, normal, no. (Default: all)

--allow-empty ok to record an empty change

 类似资料: