Skip to main content

GitVersion

What

Display the GitVersion version. We strongly recommend using GitVersion Portable for this.

caution

The GitVersion CLI can be a bit slow, causing the prompt to feel slow. This is why we cache the value for 30 minutes by default.

Sample Configuration

×  1.4.2 _ ohmyposh.dev ×  1.4.2 _ ohmyposh.dev

Template (info)

default template
{{ .MajorMinorPatch }}

Properties

You can leverage all variables from the GitVersion CLI. Have a look at their documentation for more information.