• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: Error in getting commit history between two tags – Use ‘–‘ to separate paths from revisions

Resolved: Error in getting commit history between two tags – Use ‘–‘ to separate paths from revisions

0
By Isaac Tonny on 17/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

How to get rid of below error to get the commit history? sometimes it works not all the time
Any help would be appreciated!

Answer:

EDIT: After discussion in comments one of the tags wasn’t local, git fetch --tags resolves this.
Are you sure you don’t mean v1.0.11..b1.0.12 with two dots (..) rather than three (...).
Also is b1.0.12 a typo when you meant v1.0.12. I suspect this because error reports unknown revision.
The meaning of .. and ... can be found in git help rev-parse. Here’s a snippet;

The .. (two-dot) Range Notation The ^r1 r2 set operation appears so often that there is a shorthand for it. When you have two commits r1 and r2 (named according to the syntax explained in SPECIFYING REVISIONS above), you can ask for commits that are reachable from r2 excluding those that are reachable from r1 by ^r1 r2 and it can be written as r1..r2. The … (three-dot) Symmetric Difference Notation A similar notation r1…r2 is called symmetric difference of r1 and r2 and is defined as r1 r2 –not $(git merge-base –all r1 r2). It is the set of commits that are reachable from either one of r1 (left side) or r2 (right side) but not from both.


If you have better answer, please add a comment about this, thank you!

git git-alias
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: Java Swing center JLabel in JPanel with two JLabels

27/03/2023

Resolved: How to compare two text files and and change the sign of the data in powershell?

27/03/2023

Resolved: Java Virtual Machines deleted

27/03/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.