Skip to content
Discussion options

You must be logged in to vote

Why not commit directly to main?

It keeps the main app safe: Main is like the final, working product. Working on a separate branch lets you test new ideas without breaking the app for users or teammates.
It allows for code reviews: Creating a separate branch lets you open a Pull Request (PR) so teammates can check your code for bugs or errors before it gets added to the main project.
It makes teamwork easier: Multiple developers can work on different features at the same time on their own branches without accidentally deleting or overwriting each other's work.

What happens after a Pull Request (PR) is merged?

Your changes (commits): Your work gets copied over and combined into the main br…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Himanshu-5680
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants