Skip to content

Instantly share code, notes, and snippets.

@abhisekp
Last active June 15, 2023 12:14
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save abhisekp/8f890be7f2b7bfb69603 to your computer and use it in GitHub Desktop.
Save abhisekp/8f890be7f2b7bfb69603 to your computer and use it in GitHub Desktop.
How to install hubflow in Windows?

How to install hubflow in Windows?

— by Abhisek Pattnaik <abhisekp@engineer.com>

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.

@webdevfarhan
Copy link

webdevfarhan commented Jan 7, 2019

Hi, it didn't work. Any ideas why?

`

lenovo@lenovo-PC MINGW64 ~/Documents/gits/hubflow (master) $ cp git-hf* C:/Program\ Files/Git/bin lenovo@lenovo-PC MINGW64 ~/Documents/gits/hubflow (master) $ cp hubflow-common C:/Program Files/Git/bin cp: target 'Files/Git/bin' is not a directory lenovo@lenovo-PC MINGW64 ~/Documents/gits/hubflow (master) $ cp hubflow-common C:/Program\ Files/Git/bin lenovo@lenovo-PC MINGW64 ~/Documents/gits/hubflow (master) $ git submodule update --remote --init --checkout Submodule 'shFlags' (git://github.com/nvie/shFlags.git) registered for path 'shF lags' Cloning into 'C:/Users/lenovo/Documents/gits/hubflow/shFlags'... Submodule path 'shFlags': checked out '2fb06af13de884e9680f14a00c82e52a67c867f1' lenovo@lenovo-PC MINGW64 ~/Documents/gits/hubflow (master) $ cp shFlags/src/shflags C:/Program\ Files/Git/bin/hubflow-shFlags lenovo@lenovo-PC MINGW64 ~/Documents/gits/hubflow (master) $ git hf help git: 'hf' is not a git command. See 'git --help'. The most similar command is lfs

`

@robert-greathouse
Copy link

You didn't wrap the path for your cp command in "".

@jishnunand
Copy link

I tried the same didn't work form me.

@rcaner
Copy link

rcaner commented Oct 20, 2020

Add PATH to Github folder. (C:/Program\ Files/Git/bin/)
It can easily integrated thank you for packages I used in Windows and Ubuntu.

@jishnunand
Copy link

It's resolved by keeping all files to C:/Program\ Files/Git/usr/bin/

@boehs
Copy link

boehs commented Mar 16, 2021

thanks to @halfbaked 's revision: https://gist.github.com/halfbaked/ec7cd2d40458a7f33961d648edefb001 it works. your install directory is actually C:\Program Files\Git\mingw64\bin

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