To use the git command from any folder, Windows needs to know where the Git binary is located.

Note: Even though it ends in .exe , many "Portable" versions are self-extracting archives. If you specifically need a .zip extension, you can often find them on the Git for Windows GitHub Releases page. How to "Install" Git from a ZIP File

You are on a work or school machine where you don't have permission to run installers.

Open the , search for "Environment Variables," and select "Edit the system environment variables." Click the Environment Variables button.

Click and paste the path to the bin and cmd folders inside your extracted Git directory. For example: C:\Portables\Git\bin C:\Portables\Git\cmd Click OK on all windows. Step 3: Verify the Installation Open a new Command Prompt or PowerShell window and type: git --version Use code with caution.