次のリビジョン | 前のリビジョン 次のリビジョン両方とも次のリビジョン |
windows:git [2019/07/19 04:39] – 作成 ともやん | windows:git [2023/09/28 13:48] – [Git for Windows (SDKではなく...) 見直し中...] ともやん |
---|
====== Git - 分散型バージョン管理システム ====== | ====== Git - 分散型バージョン管理システム ====== |
| |
===== Git for Windows のダウンロード ===== | ===== Git For Windows ===== |
| 本家: [[https://gitforwindows.org/|Git for Windows]]\\ |
| |
| ==== Git for Windows のダウンロード ==== |
- [[https://gitforwindows.org/|Git for Windows]] より [[https://github.com/git-for-windows/git/releases/download/v2.22.0.windows.1/Git-2.22.0-64-bit.exe|Git-2.22.0-64-bit.exe]] をダウンロードする。 | - [[https://gitforwindows.org/|Git for Windows]] より [[https://github.com/git-for-windows/git/releases/download/v2.22.0.windows.1/Git-2.22.0-64-bit.exe|Git-2.22.0-64-bit.exe]] をダウンロードする。 |
| |
===== Git for Windows のインストール ===== | ==== Git for Windows のインストール ==== |
- ダウンロードした Git-2.22.0-64-bit.exe を実行する。\\ {{:windows:git_for_windows_001.png?400|Git for Windows 001}} | - ダウンロードした Git-2.22.0-64-bit.exe を実行する。\\ {{:windows:git_for_windows_001.png?400|Git for Windows 001}} |
- [Next >] ボタンをクリックして行き、インストールを進める。 | - [Next >] ボタンをクリックして行き、インストールを進める。 |
| |
===== Git for Windows の動作確認 ===== | ==== Git for Windows の動作確認 ==== |
コマンドプロンプトより以下のコマンドを実行する。\\ | コマンドプロンプトより以下のコマンドを実行する。\\ |
<code> | <code> |
git version 2.22.0.windows.1 | git version 2.22.0.windows.1 |
</code> | </code> |
| |
| ==== Git for Windows (SDKではなく...) 見直し中... ==== |
| <WRAP color_term> |
| <WRAP color_mincode_long><code bash> |
| #!/usr/bin/env bash |
| |
| cd / |
| |
| echo "Downloading... zstd-v1.5.5-win64.zip" |
| #curl -L https://github.com/mcgitty/pacman-for-git/raw/main/zstd-1.5.0-1-i686.pkg.tar.xz --ssl-no-revoke -o /tmp/zstd-1.5.2-1-x86_64.pkg.tar.xz |
| #tar Jxvf /tmp/zstd-1.5.2-1-x86_64.pkg.tar.xz usr |
| curl -L https://github.com/facebook/zstd/releases/download/v1.5.5/zstd-v1.5.5-win64.zip --ssl-no-revoke -o /tmp/zstd-v1.5.5-win64.zip |
| unzip /tmp/zstd-v1.5.5-win64.zip -d -o /tmp |
| cp /tmp/zstd-v1.5.5-win64/zstd.exe /usr/bin/ |
| |
| pkgs=(pacman-6.0.2-9-x86_64.pkg.tar.zst pacman-mirrors-20221016-1-any.pkg.tar.zst msys2-keyring-1~20230703-1-any.pkg.tar.zst) |
| dirs=(usr etc usr) |
| |
| for ((idx=0; idx<${#pkgs[@]}; ++idx)); do |
| echo "Downloading... https://repo.msys2.org/msys/x86_64/${pkgs[idx]}" |
| curl -L https://repo.msys2.org/msys/x86_64/${pkgs[idx]} --ssl-no-revoke -o /tmp/${pkgs[idx]}; |
| tar x --zstd -vf /tmp/${pkgs[idx]} ${dirs[idx]} |
| echo |
| done |
| |
| curl -L https://raw.githubusercontent.com/msys2/MSYS2-packages/7858ee9c236402adf569ac7cff6beb1f883ab67c/pacman/pacman.conf --ssl-no-revoke -o /etc/pacman.conf |
| |
| mkdir -p /var/lib/pacman |
| pacman-key --init |
| pacman-key --populate msys2 |
| pacman -Sy |
| export URL=https://github.com/git-for-windows/git-sdk-64/raw/main |
| cat /etc/package-versions.txt | while read p v; do |
| d=/var/lib/pacman/local/$p-$v; |
| mkdir -p $d; |
| echo $d; |
| for f in desc files install mtree; do |
| curl -sSL "$URL$d/$f" --ssl-no-revoke -o $d/$f; |
| done; |
| done |
| </code></WRAP> |
| </WRAP> |
| |
| [[so>questions/32712133/package-management-in-git-for-windows-git-bash|Package management in Git for Windows (Git Bash)? - Stack Overflow]]\\ |
| |
| ===== Git for Windows SDK ===== |
| [[https://github.com/git-for-windows/git-sdk-64|git-for-windows/git-sdk-64: A Git repository mirroring the current 64-bit Git for Windows SDK]]\\ |
| |
| ===== 参考文献 ===== |
| [[https://neos21.hatenablog.com/entry/2018/10/11/080000|Git For Windows よりコマンドが豊富な Git For Windows SDK を試してみる - Corredor]]\\ |
| [[https://github.com/git-for-windows|Git for Windows]]\\ |
| |