Skip to content

A custom distribution of Git and other Git tools for MSYS2.

License

Notifications You must be signed in to change notification settings

Berrysoft/msys-git-for-windows

Repository files navigation

Copyright statements

Many PKGBUILD are not totally written by myself, and the MIT LICENSE here may conflict with the original one. If you care about the license, please review the code and compare it with the following repos:

Usage

Use pre-built packages

Add following lines to /etc/pacman.conf:

[g4w]
Server = https://raw.githubusercontent.com/Berrysoft/msys-git-for-windows/publish
SigLevel = Never

It should be placed above official sections (for example, [clangarm64]), because there are some packages with the same name.

Packages are not signed. Use them at your own risk.

Build packages manually

Note that some packages should be built before mingw-w64-git is installed, because two git will confuse each other.

$ git clone https://github.com/Berrysoft/msys-git-for-windows.git
$ cd msys-git-for-windows
$ # cd to the package folder...
$ makepkg-mingw -sifC

mingw-w64-git

This repo is a PKGBUILD for git-for-windows. There's already one in the official repo, but it uses the old Makefile build system and is complicated to port to multiple toolchains in msys2.

Build system

This repo uses the new CMake build system to build the git binaries. The Makefile build system is still used to build the docs and some other tools.

Patches

I add some patches for multiple proposes.

  1. 32-bit build and clang builds need some changes.
  2. The version generated by CMakeLists.txt is wrong. I also add a custom postfix.
  3. headless-git should also be installed.
  4. Fix shebang parsing. Not accepted by upstream: git-for-windows/git#3869

mingw-w64-git-cal

It shows a GitHub like calendar. Some terminals won't show correct format due to the width of characters.

mingw-w64-git-credential-manager

It doesn't build from source, because .NET SDK is not part of MSYS2.

mingw-w64-git-crypt

It is (maybe) newer than the MSYS2 one.

mingw-w64-git-delta

A colorful diff plugin for git. It is actually delta, but mostly works for git.

mingw-w64-git-extras

They are just a series of scripts for git.

mingw-w64-git-filter-repo

It is said to perform better than git-filter-branch.

mingw-w64-git-fire

In case on fire, it is very useful to save your works.

mingw-w64-git-flow

This repo is NOT maintained with git-flow.

mingw-w64-git-lfs

It may be different from the one in the official repo.

mingw-w64-git-recall

Recall works with interactive UI.

mingw-w64-git-sizer

It builds from source, and installs to libexec/git-core.

mingw-w64-git-smash

No documents because the author is working on it.

mingw-w64-git-warp-time

A tool fixes timestamps. The version is postfixed.

About

A custom distribution of Git and other Git tools for MSYS2.

Topics

Resources

License

Stars

Watchers

Forks

Languages