Git diff - Comparing two branches in Git

De openkb
Aller à : Navigation, rechercher

Sommaire

Questions

   This question already has an answer here:
    * /questions/822811/showing-which-files-have-changed-between-two-revisions /questions/822811/showing-which-files-have-changed-between-two-revisions 12 answers

Answers

git diff branch_1..branch_2

That will produce the diff between the tips of the two branches. If you d prefer to find the diff from their common ancestor to test, you can use three dots instead of two:

git diff branch_1...branch_2

Source

License : cc by-sa 3.0

http://stackoverflow.com/questions/9834689/comparing-two-branches-in-git

Related

Outils personnels
Espaces de noms

Variantes
Actions
Navigation
Outils