Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save halfbaked/ec7cd2d40458a7f33961d648edefb001 to your computer and use it in GitHub Desktop.
Save halfbaked/ec7cd2d40458a7f33961d648edefb001 to your computer and use it in GitHub Desktop.
How to install hubflow in Windows?

How to install hubflow in Windows?

— by Abhisek Pattnaik <[email protected]>

Clone latest hubflow

git clone https://github.com/datasift/gitflow hubflow
cd hubflow

Copy all git-hf prefixed files to bin directory in git installation directory

cp git-hf* <git-install-dir>/bin/
cp hubflow-common <git-install-dir>/bin/

Update latest shflags submodule

git submodule update --remote --init --checkout
cp shFlags/src/shflags <git-install-dir>/bin/hubflow-shFlags

Test hubflow

git hf help

NOTE: Neither Hubflow or Gitflow workflow support fork and PR workflow for Open Source projects. You'll have to manually do that. Just follow the nvie's gitflow workflow as a bird's eye view reference.

NOTE: If using gitbash, the git-install-dir is /mingw64. If you encounter a permission denied error when attempting to copy the hubflow files as outlined above, run git bash as an administrator.

@boehs
Copy link

boehs commented Mar 16, 2021

Your a god, thank you!

@jjordan-quantum
Copy link

the above required executing in powershell with admin privileges, but after when i tried git hf help:
git: 'hf' is not a git command

@songjing028
Copy link

thank you !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment