Using Git for Windows (PortableGit) with a ... | git for windows portable
IdeveloponWindows(yeah,Ihearyourjeers,linuxusers!),sotouseGit,IuseGitforWindowsHowever,IuseGitForWindows(portableversion)soIcankeepmydevenvironmentcentrallylocated.ThisissoIcanreusethisenvironmentsimplybycopyingmymsysgitdirectorytoaUSBdrive.(1)DownloadthelatestversionofPortableGit:https://github.com/git-for-windows/git/releases/[1]Youllwantthelatest7zfileprefixedwithPortableGitinthefilename.Extractthe7zfiletoadirectoryofyourchoosing.Forthisarticle,Illbeusingc:PortableGitasareferencepoint.(2)...
I develop on Windows (yeah, I hear your jeers, linux users!), so to use Git, I use Git for Windows
However, I use Git For Windows (portable version) so I can keep my dev environment centrally located. This is so I can reuse this environment simply by copying my msysgit directory to a USB drive.
(1) Download the latest version of PortableGit:https://github.com/git-for-windows/git/releases/[1]
Youll want the latest 7z file prefixed with PortableGit in the file name.
Extract the 7z file to a directory of your choosing. For this article, Ill be using c:PortableGit as a reference point.
(2) Setting up your bash environment to use a custom HOME directoryThe last step is loading bash and telling it to use a custom HOME directory.
Create a new directory called homeportable in the folder that you extracted PortableGit to. eg. c:PortableGithomeportable