Middle
What do you know about Git? What are pull requests and merge requests used for?
sobes.tech AI
Answer from AI
Git is a distributed version control system that allows tracking changes in code, working with branches, and merging changes from multiple developers.
Pull request (PR) and merge request (MR) are mechanisms in source code management systems (e.g., GitHub, GitLab) that allow proposing changes from one branch to another (usually from a feature branch to the main branch). They serve for:
- Discussion and code review before merging.
- Automated testing of changes.
- Quality control and error prevention.
Example: a developer creates a new branch, makes changes, and opens a pull request. Other team members review the code, leave comments, and after approval, the changes are merged into the main branch.