Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git diff two branches with a dot (.) in the name

Tags:

git

When I run git diff origin/r35.2..origin/r35.3 I get:

fatal: bad revision 'origin/r35.2..origin/r35.3'

How do I escape the dots in the name?

like image 283
Clintm Avatar asked Oct 19 '25 02:10

Clintm


1 Answers

Escape with backslashes \.

git diff origin/r35\.2..origin/r35\.3

like image 119
Bill Avatar answered Oct 22 '25 05:10

Bill



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!