Skip to content

Instantly share code, notes, and snippets.

@MuhammadSulaiman001
Forked from arzzen/cygwin-installer.sh
Last active February 25, 2024 05:33
Show Gist options
  • Save MuhammadSulaiman001/40a4a8170e0d081b637c6e4b20d1de10 to your computer and use it in GitHub Desktop.
Save MuhammadSulaiman001/40a4a8170e0d081b637c6e4b20d1de10 to your computer and use it in GitHub Desktop.
How to get "git-quick-stats" working on windows (using PowerShell)
  1. Setup,
# Clone the repo
git clone https://github.com/arzzen/git-quick-stats
# Move inside
cd git-quick-stats
# There is a file called "git-quick-stats", we'll add its path to .gitconfig file..
$git_stats_file_path = (Get-Item .\git-quick-stats).FullName -replace "\\", "/" # \ did not work for me! I had to replace \ with /
# example value: D:/cli-tools/git-quick-stats/git-quick-stats
git config --global alias.quick-stats "! $git_stats_file_path"
  1. Usage: Run the following command under some git repo to start the interactive app,
git quick-stats
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment