You have too many changes between each developer's code, and this usually ends in merge conflicts. If you have multiple developers working on the same master branch, it can be disastrous. Then when you're done, you can merge them with the master branch.Īnother benefit of branches is that they allow multiple developers to work on the same project simultaneously. On this new branch, you can create the new changes. To create and use a new branch, you use the following command in your terminal in the project directory: # create a new branch For minor changes, this may not be a big deal, but for big changes, doing this is not ideal. When you want to update your app, you can also add more commits (changes) to this branch. This particular branch holds the source code that gets deployed when your app is ready for production. When you're working with git, you'll have a master (also called main) environment (branch). Multiple environments in this context means branches. In addition to versioning, Git allows you to work in multiple environments at the same time. When a new update breaks your app, Git lets you revert those changes to the previous version. Git is a version control tool that allows you to maintain and view different versions of your application.
0 Comments
Leave a Reply. |