$ man branches
Engineering · Version Control
Branches
Separate versions of your code that let you work on features without breaking the main version.
为什么重要
Main branch is what's live. Feature branches are where you experiment. You can try things, break them, fix them, and only merge to main when they're ready.
你怎么用它
Create a branch for each feature. Test it. Merge it when it works. Delete the branch when you're done. Keeps main clean.
相关术语