如何在GitHub的不同分支中比较具有相同名称的两个Python文件?

huangapple go评论71阅读模式
英文:

How to compare two python files with the same name in different branches in GitHub?

问题

How can I compare these files in GitHub?

I am aware of git diff command but I am looking for a way to compare files in the repository user interface (instead of using git commands in the terminal).

英文:

I have 2 versions of a Python code (python files with the same name) in 2 different branches in GitHub.

How can I compare these files in GitHub?

I am aware of git diff command but I am looking for a way to compare files in the repository user interface (instead of using git commands in the terminal).

答案1

得分: 2

你可以比较分支,这将显示任何差异:

https://github.com/<user>/<repo>/compare/branchA...branchB

英文:

You can compare the branches which will show any diffs:

https://github.com/&lt;user&gt;/&lt;repo&gt;/compare/branchA...branchB

huangapple
  • 本文由 发表于 2023年4月17日 06:21:01
  • 转载请务必保留本文链接:https://go.coder-hub.com/76030612.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定