# Compare different commits

**URL:** <https://forum.gitea.com/t/compare-different-commits/2388>\
**Category:** Gitea Usages\
**Created:** [August 7, 2020, 7:27am UTC](https://forum.gitea.com/t/compare-different-commits/2388 "2020-08-07T07:27:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![krasotinpa](https://avatars.discourse-cdn.com/v4/letter/k/f07891/32.png) [@krasotinpa](https://forum.gitea.com/u/krasotinpa)\
**Post date:** [August 7, 2020, 7:27am UTC](https://forum.gitea.com/t/compare-different-commits/2388/1 "2020-08-07T07:27:49Z")

</div>

Hi

Im new in GITEA/  
Im inyteresting is there a way to comape to different commits for one file in one branch?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![jsraz](https://avatars.discourse-cdn.com/v4/letter/j/848f3c/32.png) [@jsraz](https://forum.gitea.com/u/jsraz)\
**Post date:** [September 10, 2020, 10:13pm UTC](https://forum.gitea.com/t/compare-different-commits/2388/2 "2020-09-10T22:13:37Z")

</div>

I can’t seem to find that either. Same goes for comparing branches, which would be fantastic.

---

<div class="post-metadata">

**Author:** ![lapo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/lapo/32/3585_2.png) [@lapo](https://forum.gitea.com/u/lapo)\
**Post date:** [April 11, 2023, 1:38pm UTC](https://forum.gitea.com/t/compare-different-commits/2388/3 "2023-04-11T13:38:09Z")

</div>

It is possible by writing this in the URL manually… I didn’t find any way to reach that from the UI though.  
`/compare/a7de13ebae..727979a8d2`  
(also works with branch and tag names)

---

<div class="post-metadata">

**Author:** ![mizaozaotian](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/mizaozaotian/32/6016_2.png) [@mizaozaotian](https://forum.gitea.com/u/mizaozaotian)\
**Post date:** [June 11, 2024, 2:30am UTC](https://forum.gitea.com/t/compare-different-commits/2388/4 "2024-06-11T02:30:11Z")

</div>

When creating a pull request page, you can view the comparison between two branches.  
创建合并请求页面时，可以查看两个分支的对比

---

<div class="post-metadata">

**Author:** ![Sayan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/sayan/32/6004_2.png) [@Sayan](https://forum.gitea.com/u/Sayan)\
**Post date:** [June 13, 2024, 10:47am UTC](https://forum.gitea.com/t/compare-different-commits/2388/5 "2024-06-13T10:47:49Z")

</div>

Hey 👉@krasotinpa, I agree with 👉 @lapo.

You can try this once: [git - How to compare files from two different branches - Stack Overflow](https://stackoverflow.com/questions/4099742/how-to-compare-files-from-two-different-branches)

This will definitely work for you.
