{ "version": "2.52.0", "description": "A free and open source distributed version control system.", "homepage": "https://gitforwindows.org", "license": { "identifier": "GPL-2.0-only", "url": "https://github.com/git-for-windows/git/blob/HEAD/COPYING" }, "notes": [ "To register file associations, please execute the following command:", "reg import \"$dir\\install-associations.reg\"", "", "To register the context menu entry, please execute the following command:", "reg import \"$dir\\install-context.reg\"", "", "To set Git Credential Manager Core for portable Git, please execute the following command:", "git config --global credential.helper manager" ], "architecture": { "64bit": { "url": "https://github.com/git-for-windows/git/releases/download/v2.52.0.windows.1/PortableGit-2.52.0-64-bit.7z.exe#/dl.7z", "hash": "1dc4046dcfb138f62aa04a46b5529adc8abed5033b2af29bb60b66872a836cf8" }, "arm64": { "url": "https://github.com/git-for-windows/git/releases/download/v2.52.0.windows.1/PortableGit-2.52.0-arm64.7z.exe#/dl.7z", "hash": "bdc2884b321152225498fadc97cad68c244e047310ea686e4fe18ad7257e5b72" } }, "post_install": [ "$git_path = $dir -replace '\\\\', '\\\\'", "Get-ChildItem -Path \"$bucketsdir\\$bucket\\scripts\\$app\" -Filter '*.reg' -File | ForEach-Object {", " $content = Get-Content -Path $_.FullName -Encoding utf8", " if ($global) { $content = $content -replace 'HKEY_CURRENT_USER', 'HKEY_LOCAL_MACHINE' }", " $content -replace '{{git_dir}}', $git_path | Set-Content -Path \"$dir\\$($_.Name)\" -Encoding unicode", "}" ], "env_add_path": "cmd", "env_set": { "GIT_INSTALL_ROOT": "$dir" }, "bin": [ "bin\\sh.exe", "git-bash.exe", "usr\\bin\\gpg.exe", "usr\\bin\\gpg-agent.exe", "usr\\bin\\gpgconf.exe", "usr\\bin\\gpg-connect-agent.exe", "usr\\bin\\pinentry.exe" ], "shortcuts": [ [ "git-bash.exe", "Git\\Git Bash", "--cd-to-home" ], [ "git-cmd.exe", "Git\\Git CMD", "--cd-to-home" ], [ "cmd\\git-gui.exe", "Git\\Git GUI" ] ], "uninstaller": { "script": [ "if ($cmd -eq 'uninstall') {", " reg import \"$dir\\uninstall-context.reg\" *> $null", " reg import \"$dir\\uninstall-associations.reg\" *> $null", "}" ] }, "checkver": { "url": "https://api.github.com/repositories/23216272/releases/latest", "jsonpath": "$.assets[?(@.name =~ /Portable/i)].browser_download_url", "regex": "(?i)download/(?v?[\\d.]+windows[\\d.]+)/PortableGit-([\\d.]+)" }, "autoupdate": { "architecture": { "64bit": { "url": "https://github.com/git-for-windows/git/releases/download/$matchTag/PortableGit-$version-64-bit.7z.exe#/dl.7z" }, "arm64": { "url": "https://github.com/git-for-windows/git/releases/download/$matchTag/PortableGit-$version-arm64.7z.exe#/dl.7z" } }, "hash": { "url": "https://github.com/git-for-windows/git/releases/tag/$matchTag", "regex": "(?s)$basename.*?$sha256" } } }