# About .gitversion File

**URL:** <https://forum.opentap.io/t/about-gitversion-file/1202>\
**Category:** General\
**Created:** [August 15, 2023, 12:36pm UTC](https://forum.opentap.io/t/about-gitversion-file/1202 "2023-08-15T12:36:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![btyilmaz](https://avatars.discourse-cdn.com/v4/letter/b/a3d4f5/32.png) [@btyilmaz](https://forum.opentap.io/u/btyilmaz)\
**Post date:** [August 15, 2023, 12:36pm UTC](https://forum.opentap.io/t/about-gitversion-file/1202/1 "2023-08-15T12:36:10Z")

</div>

Hi everyone,

I am trying to use git assisted versioning but keep getting the error “Did not find any .gitversion file” when i run the “tap sdk gitversion” command.

Is this file generated automatically? If it is I can’t generate it so I manually copy and pasted the .gitversion file from the OpenTAP repo but i dont know where to put that file and still get the same error.

Also, when I add an annotated tag, it does not increment the version.

---

<div class="post-metadata">

**Author:** ![rolf\_madsen](https://avatars.discourse-cdn.com/v4/letter/r/43a26b/32.png) [@rolf\_madsen](https://forum.opentap.io/u/rolf_madsen)\
**Post date:** [August 15, 2023, 2:55pm UTC](https://forum.opentap.io/t/about-gitversion-file/1202/2 "2023-08-15T14:55:15Z")

</div>

Hi @btyilmaz,

A .gitversion file is not automatically generated.

The idea is, you bump the .gitversion file when you are going to work on a new version, to get new alpha and beta versions.

When you then want to make a release you can use the git tag.

You can read all about it in [the Developer Guide](https://doc.opentap.io/Developer%20Guide/Plugin%20Packaging%20and%20Versioning/#git-assisted-versioning).

---

<div class="post-metadata">

**Author:** ![alan\_copeland](https://avatars.discourse-cdn.com/v4/letter/a/b782af/32.png) [@alan\_copeland](https://forum.opentap.io/u/alan_copeland)\
**Post date:** [August 15, 2023, 3:25pm UTC](https://forum.opentap.io/t/about-gitversion-file/1202/3 "2023-08-15T15:25:12Z")

</div>

Make sure you check-in your .gitversion file into your branch, or it won’t work when “experimenting with it”.

---

<div class="post-metadata">

**Author:** ![btyilmaz](https://avatars.discourse-cdn.com/v4/letter/b/a3d4f5/32.png) [@btyilmaz](https://forum.opentap.io/u/btyilmaz)\
**Post date:** [August 16, 2023, 4:53am UTC](https://forum.opentap.io/t/about-gitversion-file/1202/4 "2023-08-16T04:53:11Z")

</div>

Thanks @rolf_madsen and @alan_copeland , I missed the part where it says _" To determine the first three values of the version number, Git assisted versioning reads a `.gitversion` file in from the **root of the repository**"_.

Also, as the @alan_copeland said, I checked-in the file and it worked.

---

<div class="post-metadata">

**Author:** ![btyilmaz](https://avatars.discourse-cdn.com/v4/letter/b/a3d4f5/32.png) [@btyilmaz](https://forum.opentap.io/u/btyilmaz)\
**Post date:** [August 16, 2023, 7:38am UTC](https://forum.opentap.io/t/about-gitversion-file/1202/5 "2023-08-16T07:38:14Z")

</div>

Another thing came to my mind is that the [GitVersion](https://gitversion.net/docs/) can be used for package versions. It may be a cool way to increment version.
