git-cm
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseGit Commit
Git Commit
Commit changes with a conventional commit message.
-
Check the current git status to understand what has changed.
- Command:
git status
- Command:
-
View the diff if necessary to understand the changes better.
- Command: or
git diff --stagedgit diff
- Command:
-
Add all changes to the staging area (unless specific files are requested).
- Command:
git add .
- Command:
-
Commit the changes with a descriptive and conventional commit message.
- Command:
git commit -m "<type>: <subject>" - Ensure the message follows conventional commit standards (e.g., feat, fix, chore, docs, refactor).
- Command:
使用约定式提交信息提交变更。
-
查看当前Git状态,了解具体变更内容。
- 命令:
git status
- 命令:
-
如有必要可查看代码差异,更好地掌握变更详情。
- 命令:或
git diff --stagedgit diff
- 命令:
-
将所有变更添加至暂存区(若需提交指定文件则无需执行此操作)。
- 命令:
git add .
- 命令:
-
使用描述性的合规约定式提交信息提交变更。
- 命令:
git commit -m "<type>: <subject>" - 确保提交信息符合约定式提交标准(如feat、fix、chore、docs、refactor)。
- 命令: