<!--
{
  "availability" : [
    "SwiftPM: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PackageDescription",
  "identifier" : "/documentation/PackageDescription/GitInformation",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "PackageDescription"
    ],
    "preciseIdentifier" : "s:18PackageDescription14GitInformationV"
  },
  "title" : "GitInformation"
}
-->

# GitInformation

Information about the git status of a given package, if available.

```
struct GitInformation
```

## Topics

### Instance Properties

[`let currentCommit: String`](/documentation/PackageDescription/GitInformation/currentCommit)

The commit currently checked out.

[`let currentTag: String?`](/documentation/PackageDescription/GitInformation/currentTag)

The version tag currently checked out, if available.

[`let hasUncommittedChanges: Bool`](/documentation/PackageDescription/GitInformation/hasUncommittedChanges)

Whether or not there are uncommitted changes in the current repository.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)