One tool that can help the set of the machines is Chocolatey Nuget. Chocolatey is is a Machine Package Manager, somewhat like apt-get, but built with Windows in mind. It is set up on the same premise as Nuget both at their essence are package managers.
To set up Chocolatey open a command prompt and type
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('http://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%systemdrive%\chocolatey\bin |
Once this is done type the following commands at the command prompt. This installs Git, MsysGit, Posh Git and Git Flow to your machine.:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cinst msysgit | |
cinst git | |
cinst poshgit | |
cinst git-flow-dependencies |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# clone git flow to appropriate directory | |
> git clone --recursive git://github.com/nvie/gitflow.git | |
# change directory to gitflow | |
> cd gitflow | |
# Run the msysgit-install script with the location as a parameter. | |
> contrib\msysgit-install.cmd "C:\Users\USER_NAME\AppData\Local\GitHub\PortableGit_8810fd5c2c79c73adcc73fd0825f3b32fdb816e7" | |
# Note: Replace PortableGit_8810fd5c2c79c73adcc73fd0825f3b32fdb816e7 with the name of your directory; you do not need the \bin at the end. | |
# Check that GitFlow is installed by calling the help | |
git flow help |
If you get an error at the above step fix by copying the following files from the Git install path similar to C:\Users\USER_NAME\AppData\Local\GitHub\PortableGit_8810fd5c2c79c73adcc73fd0825f3b32fdb816e7.
NB: Replace PortableGit_8810fd5c2c79c73adcc73fd0825f3b32fdb816e7 with the name of your directory; you do not need the \bin at the end.
To C:\Program Files (x86)\Git\libexec\git-core (or similar)
Then you are ready to use git flow, read this article for more information about using git flow