Some Git commands take commit ranges and one valid syntax is to separate two commit names with two dots .., and another syntax uses three dots ....
What are the differences between the two?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It depends on whether you’re using a
logcommand or adiffcommand. In thelogcase, it’s in theman git-rev-parsedocumentation:Which basically means that you’ll get all commits that are in either of the two branches, but not in both.
In the
diffcase, it’s in theman git-diffdocumentation:Which is a bit fuzzy. Basically it means it shows only the differences in that branch compared to another branch: it looks for the last common commit with the first committish you gave it, and then diffs the second committish to that. It’s an easy way to see what changes are made in that branch, compared to this branch, without taking notice of changes in this branch only.
The
..is somewhat simpler: In thegit-diffcase, it’s the same as agit diff A Band just diffs A against B. In thelogcase, it shows all commits that are in B but not in A.