How to compare the range of commits in a pull request on Github?

The script, the first 5 commits in PR are already checked by a code. He made several more attempts and wants to focus on them.

How can I compare the range of commits in a pull request on Github?

+6
source share
2 answers

The most convenient way I've found is:

You will see the range of commits that you want to view in the context of PR.

PS Now GitHub provides functions for viewing “Changes since the previous code review”, but sometimes it’s useful to manually select the changes

+9
source

Github support replied:

To do this, you can use the comparison view:

https://github.com/rails/rails/compare

You can also create a comparison URL manually, for example.

https://github.com/rails/rails/compare/c51aa9f6f2c361e1efc53020028592564318e8a6...35a816a86a74e35b00e1e6d6e55aff01dd40980d

+1
source

Source: https://habr.com/ru/post/984855/


All Articles