# git_launcher **Repository Path**: bjfuxingda/git_launcher ## Basic Information - **Project Name**: git_launcher - **Description**: 用于启动 git,每次都为 git 创建独立的环境变量 HOME,以实现真正的 portable。 - **Primary Language**: Unknown - **License**: GPL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-11-13 - **Last Updated**: 2026-04-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README git 启动器: 重新指定 HOME 环境变量的值 使用本程序可以制作真正的 便捷版 git 1. main.c 内指定的环境变量 HOME 仅对通过本启动器运行的 git 可见 2. 用编译生成的 git.exe 替换 PortableGit/bin/ 和 PortableGit/cmd/ 内的 git.exe 3. 将 PortableGit/cmd/ 添加到系统环境变量 Path, 如果把 PortableGit/bin/ 添加到环境变量 Path, 会因为存在多个 bash.exe 导致 make 出现问题 4. 如果需要在 PortableGit/bin/bash.exe 中使用重定向的 HOME 则在 PortableGit/etc/bash.bashrc 最后一行加入 export HOME='/home'