|
Git operators.. operator
~ and ^ operatorCovered in git show --not operator and ^ operator used as negation^ operator can also be used as a negation operator in which case it becomes equivalent to the --not operator. For example: the following commands are same:
This becomes useful when operating on multiple branches. For example: the following commands are same:
... operatorgit log branch1...branch2 will show commits present in branch1 OR branch2 but not in both. It can be combined with --left-right operator to show which commit belongs to which branch. git log --left--right branch1...branch2 |
Got a thought to share or found a
bug in the code?
We'd love to hear from you:
Name: | |
Email: | (Your email is not shared with anybody) |
Comment: |
Facebook comments: