windows:git

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

次のリビジョン
前のリビジョン
windows:git [2019/07/19 04:39] – 作成 ともやんwindows:git [2023/09/28 18:31] (現在) – [Git for Windows (SDKではなく...)] ともやん
行 1: 行 1:
 ====== 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>
行 14: 行 17:
 git version 2.22.0.windows.1 git version 2.22.0.windows.1
 </code> </code>
 +
 +==== 64bit Git for Windows Portable (SDKではなく...) ====
 +<WRAP color_term>
 +<WRAP color_mincode><code bash>
 +#!/usr/bin/env bash
 +
 +cd /
 +
 +pkg_zstd_dir=zstd-v1.5.5-win64
 +pkg_zstd=${pkg_zstd_dir}.zip
 +
 +echo "Downloading... ${pkg_zstd}"
 +#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/${pkg_zstd} --ssl-no-revoke -o /tmp/${pkg_zstd}
 +unzip -o /tmp/${pkg_zstd} -d /tmp
 +cp /tmp/${pkg_zstd_dir}/zstd.exe /usr/bin/
 +rm /tmp/${pkg_zstd}
 +rm -rf /tmp/${pkg_zstd_dir}
 +
 +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]}
 +    rm /tmp/${pkgs[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 -Syy
 +
 +#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]]\\
 +
  • windows/git.1563478785.txt.gz
  • 最終更新: 2019/07/19 04:39
  • by ともやん