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.
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.