Git
Status
Section titled “Status”Version: 1.0.0 | Tests: Passing
{
"features": {
"ghcr.io/infrashift/trusted-devcontainer-features/git:latest": {}
}
} Options
Section titled “Options”This feature has no configurable options.
Dependencies
Section titled “Dependencies”None — this feature is independent and has no dependencies.
How It Works
Section titled “How It Works”This feature compiles Git from source on Red Hat UBI 9 to provide a current version of Git rather than relying on the older version available in the UBI package repositories. The UBI 9 base image ships with a Git version that may lag significantly behind upstream, which can cause compatibility issues with modern Git features, hosting platforms, and workflows.
The Ansible playbook installs the required build dependencies including curl, gcc, make, openssl-devel, zlib-devel, and other development libraries needed to compile Git. It then downloads the Git source tarball for the target version, compiles it with the default configuration, and installs it system-wide so it is available to all users in the container.
This is one of the simplest features in the collection, with no configurable options and no dependencies on other features. It serves as a foundational building block for features like Git LFS, which requires Git to be installed first. After installation, you can verify the version by running git --version in your terminal.