What does the tilde (~) and caret (^) notation mean in Git commit references?

Git Medium

Git — Medium

What does the tilde (~) and caret (^) notation mean in Git commit references?

Key points

  • Tilde (~) traverses commit history linearly
  • Caret (^) is used for merge commit parent selection
  • These notations are not interchangeable
  • Understanding their differences is key to precise commit referencing

Ready to go further?

Related questions