Update git-database.md (#2247)

This commit is contained in:
Alexander Salamatov
2020-10-06 15:50:22 +03:00
committed by GitHub
parent 6a0d404263
commit bd85dd9a4e
+2 -2
View File
@@ -17,12 +17,12 @@ var tag = new NewTag {
Date = DateTime.UtcNow
}
};
var result = await client.Git.Tags.Create("octokit", "octokit.net", tag);
var result = await client.Git.Tag.Create("octokit", "octokit.net", tag);
Console.WriteLine("Created a tag for {0} at {1}", result.Tag, result.Sha);
```
Or you can fetch an existing tag from the API:
```csharp
var tag = await client.Git.Tags.Get("octokit", "octokit.net", "v1.0.0");
var tag = await client.Git.Tag.Get("octokit", "octokit.net", "v1.0.0");
```