git commit

来源:互联网 发布:哪个直播软件好 编辑:程序博客网 时间:2024/05/16 15:11

git-commit - Record changes to the repository

git commit [-a | --interactive | --patch] [-s] [-v] [-u<mode>] [--amend]       [--dry-run] [(-c | -C | --fixup | --squash) <commit>]       [-F <file> | -m <msg>] [--reset-author] [--allow-empty]       [--allow-empty-message] [--no-verify] [-e] [--author=<author>]       [--date=<date>] [--cleanup=<mode>] [--[no-]status]       [-i | -o] [-S[<keyid>]] [--] [<file>…​]

git commit -m “the commit message” # 提交暂存区的文件
git commit -a # 提交跟踪的,已经修改的文件
git commit –amend #重新进行当前的提交

参考文献:
https://git-scm.com/docs/git-commit

原创粉丝点击