Search code examples
gitversion-controlpushverify

Is there an option in SourceTree / Git to review another persons code before pushing?


We use SourceTree for a project at work. Because all team members are inexperienced juniors, we see a lot of code that isn't exactly high quality.

Therefore, we want to include a step that forces you to let your code check by another team member before you can push your code. Is this already a built-in option in SourceTree or Git?

Thanks in advance!


Solution

  • You can have them commit to a branch and then create a pull request, assigning it to the reviewer of the code, who will have to approve/merge it into the master/nightly.

    In SourceTree the option is under the Repository menu item at the bottom.