git-commit

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
提交所有变更(纯本地操作):
  1. 先检查
    git status --porcelain
    再决策。
  2. 若有变更:按可审计粒度提交,提交信息清晰,且只提交应入库文件。
  3. 若发现应忽略文件:可更新
    .gitignore
    并纳入提交。
  4. 结束时应尽量保证工作区干净.
Commit all changes (local-only operation):
  1. First check
    git status --porcelain
    before making a decision.
  2. If there are changes: Commit according to auditable granularity, with clear commit messages, and only submit files that should be stored in the repository.
  3. If files that should be ignored are found: Update
    .gitignore
    and include it in the commit.
  4. Try to ensure the working directory is clean at the end.