{"id":26958567,"url":"https://github.com/isikerhan/setup-git","last_synced_at":"2026-05-10T06:50:48.715Z","repository":{"id":281403330,"uuid":"945163794","full_name":"isikerhan/setup-git","owner":"isikerhan","description":"Set up your GitHub Actions workflow with a specific version of Git","archived":false,"fork":false,"pushed_at":"2025-03-30T21:13:21.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T21:20:05.585Z","etag":null,"topics":["actions","git"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/isikerhan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-08T20:00:01.000Z","updated_at":"2025-03-30T21:11:48.000Z","dependencies_parsed_at":"2025-03-30T21:19:46.484Z","dependency_job_id":"7685357e-4aba-4c2e-9086-843fcf9a13cf","html_url":"https://github.com/isikerhan/setup-git","commit_stats":null,"previous_names":["isikerhan/setup-git"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isikerhan%2Fsetup-git","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isikerhan%2Fsetup-git/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isikerhan%2Fsetup-git/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isikerhan%2Fsetup-git/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/isikerhan","download_url":"https://codeload.github.com/isikerhan/setup-git/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246933871,"owners_count":20857144,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions","git"],"created_at":"2025-04-03T04:20:01.190Z","updated_at":"2026-05-10T06:50:48.678Z","avatar_url":"https://github.com/isikerhan.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# setup-git\n\n[![Run core tests](https://github.com/isikerhan/setup-git/actions/workflows/run-core-tests.yml/badge.svg)](https://github.com/isikerhan/setup-git/actions/workflows/run-core-tests.yml)\n[![Run extended tests](https://github.com/isikerhan/setup-git/actions/workflows/run-extended-tests.yml/badge.svg)](https://github.com/isikerhan/setup-git/actions/workflows/run-extended-tests.yml)\n\nThis action installs a specific version of Git by building the source code (or downloading the prebuilt version for Windows) and adds it to the `PATH`.\n\n\u003e [!WARNING]\n\u003e [GitHub-hosted runners](https://docs.github.com/en/actions/using-github-hosted-runners)\nalready come with one of the latest Git versions\npreinstalled. __If your GitHub Action workflow does not require a specific version of Git, you probably don’t need to use this action.__\n\n## Usage\n\nSee [action.yml](action.yml)\n\n```yaml\n- uses: isikerhan/setup-git@v1\n  with:\n    # Git version for Linux and macOS runners,\n    # or Git for Windows version for Windows runners\n    git-version: 2.23.0 # or 2.23.0.windows.1 for Windows\n    \n    # Installed Git binaries are cached by default and reused in subsequent runs\n    cache: false # disable cache\n    \n    # Verbose output is disabled by default\n    verbose: true # enable verbose output\n    \n    # Installation ID is used for identifying the Git installation, and is optional\n    # Currently it's only used in the cache key, prepended to it if present\n    installation-id: ${{ github.run_id }} # Run ID will be prepended to each cache key.\n    # This ensures that each run has a unique cache entry.\n\n```\n\n__Basic Usage:__\n\n```yaml\nname: My workflow\non: [push, pull_request]\njobs:\n  test:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v4\n      - uses: isikerhan/setup-git@v1\n        with:\n          git-version: 2.44.3\n      - shell: bash\n        run: | \n          echo \"$(git --version) is ready to use\"\n          which git\n```\n\n__Matrix of Different Operating Systems and Git Versions:__\n\n```yaml\nname: My workflow with matrix\non: [push, pull_request]\njobs:\n  test:\n    name: Run on ${{ matrix.runs-on }} with Git v${{ matrix.git-version }}\n    strategy:\n      fail-fast: false\n      matrix:\n        runs-on: [ubuntu-24.04, ubuntu-24.04-arm, ubuntu-22.04, macos-14, macos-13]\n        git-version: [2.23.0, 2.44.1]\n        # include Windows runners\n        include:\n          - runs-on: windows-2022\n            git-version: 2.23.0.windows.1\n          - runs-on: windows-2022\n            git-version: 2.44.1.windows.1\n          - runs-on: windows-2019\n            git-version: 2.23.0.windows.1\n          - runs-on: windows-2019\n            git-version: 2.44.1.windows.1\n    runs-on: ${{ matrix.runs-on }}\n    steps:\n      - uses: actions/checkout@v4\n      - uses: isikerhan/setup-git@v1\n        with:\n          git-version: ${{ matrix.git-version }}\n      - shell: bash\n        run: | \n          echo \"$(git --version) is ready to use on $RUNNER_TYPE\"\n          which git\n        env: \n          RUNNER_TYPE: ${{ matrix.runs-on }}\n```\n\n\u003e [!NOTE]\nmacOS and Linux runners use standard [Git release](https://www.kernel.org/pub/software/scm/git/) versions,\nwhile Windows runners use [Git for Windows release](https://github.com/git-for-windows/git/releases) versions.\n\n## Supported Platforms\n\nThis action is designed for GitHub-hosted runners and is recommended for use on them.\n__It may__ also work on [self-hosted runners](https://github.com/git-for-windows/git/releases)\nif the [runner image](https://github.com/actions/runner-images) is similar to the ones used by GitHub-hosted runners.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisikerhan%2Fsetup-git","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fisikerhan%2Fsetup-git","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisikerhan%2Fsetup-git/lists"}