GUIDE深度 · Deep dive

Daily Git Workflow

Daily Git is a small loop: check status and diff, stage, commit, sync and push. Master this loop before rebase and reset.

更新 2026-10-30 · 公式可核验

The loop

git status and git diff: confirm changes.

git add -p and git commit -m: commit in small steps.

git pull --rebase and git push: sync and publish.

Good habits

One concern per commit; explain why in the message.

Run tests before pushing; understand conflicts before resolving.

FAQ

Should I pull before committing?

Commit locally first; sync before pushing to limit conflicts.

pull or pull --rebase?

Rebase keeps personal branches linear; follow team rules on shared branches.

Sources

Related calculators

Git Commands60 Git command and concept cards in six levels, reviewed at 1/3/7/14/30/60/120-day intervals.

More guides

Undo and Recover in GitRead guide