git - Comment voir les différences entre deux branches

Mots clés : gitgit-diffgit

meilleur 3 Réponses git - Comment voir les différences entre deux branches

vote vote

100

git diff [<options>] <commit>..​<commit> [--] [<path>…​] 
git diff <commit>...<commit> 
git diff --name-only <commit>..​<commit> 
vote vote

90

git checkout main git diff branch2 
vote vote

76

git checkout branch_1 # checkout the oldest branch git checkout -b compare-branch # create a new branch git merge --no-commit --squash branch_2 # put files from the new branch in the working folder git status # see file names that changes git diff # see the content that changed. 

Questions similaires