Please apply patch at https://github.com/git/git/pull/944 , without this patch `gitk` will hang forever on macOS. Reference: https://github.com/Homebrew/homebrew-core/pull/68865/files