<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Priyanshu Jha</title>
    <description>The latest articles on DEV Community by Priyanshu Jha (@priyanshu_jha_6595c8604e0).</description>
    <link>https://dev.to/priyanshu_jha_6595c8604e0</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3937047%2F11a5f341-1029-4951-bf93-68d6f4c23187.webp</url>
      <title>DEV Community: Priyanshu Jha</title>
      <link>https://dev.to/priyanshu_jha_6595c8604e0</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/priyanshu_jha_6595c8604e0"/>
    <language>en</language>
    <item>
      <title>Use Portable Git without Admin Rights on Windows</title>
      <dc:creator>Priyanshu Jha</dc:creator>
      <pubDate>Sun, 31 May 2026 12:18:46 +0000</pubDate>
      <link>https://dev.to/priyanshu_jha_6595c8604e0/use-portable-git-without-windows-admin-rights-on-windows-37nf</link>
      <guid>https://dev.to/priyanshu_jha_6595c8604e0/use-portable-git-without-windows-admin-rights-on-windows-37nf</guid>
      <description>&lt;h1&gt;
  
  
  Portable Git on Windows (USB Install)
&lt;/h1&gt;

&lt;p&gt;You can use Git-- the version control system as a &lt;strong&gt;portable&lt;/strong&gt; software on Windows , the portable git can acts same as normal git but without needing administrator privileges for installation, moreover you can carry it around on a USB flash drive with you, and use it with different computers.&lt;/p&gt;

&lt;p&gt;This article explains what Portable Git is and why it’s useful, and walks through downloading, extracting, and using it. You’ll learn how to launch Git from a thumb drive, verify it’s working, and even adjust your system &lt;code&gt;PATH&lt;/code&gt; so your PC recognizes it. In the end you will be shown some methods so that you don't have to manually set its PATH each time you use your thumbdrive. (We assume a 64-bit x64 Windows PC – if you have an ARM64 Windows device, use the ARM64 Portable Git version.).  &lt;/p&gt;

&lt;h3&gt;
  
  
  We assume you have :
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;A 64-bit (x86_64/AMD64) or 64-bit ARM (ARM64) Windows computer running Windows 10/11.
&lt;/li&gt;
&lt;li&gt;Intermediate Windows knowledge: navigating folders, using Command Prompt, and setting environment variables.
&lt;/li&gt;
&lt;li&gt;A USB flash drive (or other portable storage) with enough space (about 60 MB free) for Git.
&lt;/li&gt;
&lt;li&gt;(Optional) Administrator access on your PC is &lt;em&gt;not&lt;/em&gt; needed to run Portable Git, which is one of its main advantages.
&lt;/li&gt;
&lt;/ul&gt;




&lt;blockquote&gt;
&lt;p&gt;⚠️ &lt;strong&gt;Important:&lt;/strong&gt; Do not store or run a portable Git environment on a cheap, low-quality USB flash drive. Git performs frequent, small read/write operations that will quickly degrade cheap flash memory, leading to corrupted repositories and severe performance lag.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Minimum USB Drive Standards for Git
&lt;/h3&gt;

&lt;p&gt;If you must run Git from a USB drive, ensure it meets these bare minimum specifications:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Interface&lt;/strong&gt;: USB 3.0 or higher.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Memory Type&lt;/strong&gt;: Solid State Flash (NAND) or "SSD-grade" flash controllers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Speed Profile&lt;/strong&gt;: Minimum 100 MB/s sequential write speed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Random I/O&lt;/strong&gt;: High 4K random read/write performance.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Build Quality&lt;/strong&gt;: Metal housing for heat dissipation during heavy indexing.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  What is portable Git ?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Portable Software&lt;/strong&gt; is an application that runs without any installation into the &lt;em&gt;main memory&lt;/em&gt; or &lt;em&gt;C Drive&lt;/em&gt; where the program files are stored , instead it stores all its files inside its own folder, which we can carry in a storage device of our choice. &lt;/p&gt;

&lt;p&gt;Git for Windows offers a &lt;em&gt;thumbdrive edition&lt;/em&gt; specifically for this use case. &lt;strong&gt;Portable Git&lt;/strong&gt; is simply the standard Windows Git client packaged so it can run from a USB drive. Because it does not modify the Windows registry or require an installer; it leaves no traces on the host computer and runs in isolation. &lt;/p&gt;

&lt;h3&gt;
  
  
  Why use it ?
&lt;/h3&gt;

&lt;p&gt;Many Organisations block Administrator access becuause of Software Control, Licensing, Maintenance , Data Protection, Legal Safety Compliance concerns. Portable Git allows you to safely get around that.&lt;/p&gt;

&lt;p&gt;Using Portable Git is handy in many scenarios: for example, if you want to use Git on a school, work, or shared computer where you can’t install software. You just plug in your flash drive, run Git, and work in any directory (even on the PC’s local drives) as if Git were installed. This keeps your Git environment and history in one place that you control.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pros:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;No installation or admin rights needed&lt;/li&gt;
&lt;li&gt;Portable across machines.&lt;/li&gt;
&lt;li&gt;No changes to system registry.&lt;/li&gt;
&lt;li&gt;Consistent environment on any PC.&lt;/li&gt;
&lt;li&gt;Easy to carry your repositories.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Cons:&lt;/strong&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You must manage updates manually.&lt;/li&gt;
&lt;li&gt;Portable git can be slightly slower on a USB drive.&lt;/li&gt;
&lt;li&gt;If the PC has a different default Git installed, you may need to adjust &lt;code&gt;PATH&lt;/code&gt;; you will not get automatic shell integration (e.g. Git Bash) unless you launch it from the USB.
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Do you &lt;em&gt;need&lt;/em&gt; portable git?
&lt;/h2&gt;

&lt;p&gt;If a computer already has a properly configured Git installation, most users may not need Portable Git at all.&lt;/p&gt;

&lt;p&gt;A standard installation is usually simpler for everyday development.&lt;/p&gt;

&lt;p&gt;Portable Git is most useful when:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;There is no Git and administrator installation is restricted&lt;/li&gt;
&lt;li&gt;Users need isolated/temporary Git environments&lt;/li&gt;
&lt;li&gt;You want Latest or your preffered Git version &lt;/li&gt;
&lt;li&gt;System modifications needs be avoided&lt;/li&gt;
&lt;li&gt;Git must be carried between multiple computers&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In other words, Portable Git is mainly about flexibility and portability rather than replacing a normal Git installation in all situations.&lt;/p&gt;

&lt;h2&gt;
  
  
  Downloading Portable Git
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;On a Windows PC, open your web browser and go to the &lt;a href="https://git-scm.com/download/win" rel="noopener noreferrer"&gt;Git for Windows download page&lt;/a&gt;.
&lt;/li&gt;
&lt;li&gt;Choose the &lt;strong&gt;“Portable (“thumbdrive edition”)&lt;/strong&gt; link for your architecture (either “x64 Portable” or “ARM64 Portable”)【25†L46-L54】. This will download a self-extracting archive file (around &lt;strong&gt;56–57 MiB&lt;/strong&gt; for version 2.54, roughly 60 MB) to your Downloads folder. (For example, the file might be named &lt;code&gt;PortableGit-2.54.0-64-bit.7z.exe&lt;/code&gt; for x64.)
&lt;/li&gt;
&lt;li&gt;Confirm the download finished. You should see something like &lt;code&gt;PortableGit-*-bit.7z.exe&lt;/code&gt; in your Downloads folder.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;At this point, you have a single &lt;code&gt;.7z.exe&lt;/code&gt; file which is the portable Git package. It’s not installed yet; next we extract it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Extracting Portable Git
&lt;/h2&gt;

&lt;p&gt;Double-click the downloaded &lt;code&gt;PortableGit-*.7z.exe&lt;/code&gt; file. A file extraction wizard should open (this is a 7-Zip self-extractor).  &lt;/p&gt;

&lt;p&gt;When prompted for a destination, the default location is &lt;code&gt;C:\Users\priyanshu\Downloads\PortableGit&lt;/code&gt; since this is a "&lt;strong&gt;portable&lt;/strong&gt;" Git we are dealing with, we do NOT install it in &lt;em&gt;program files&lt;/em&gt; of the &lt;em&gt;main memory&lt;/em&gt; (the default location you see as listed), it requires administrator permissions and other ramifications, instead choose a folder on your USB drive or other storage of your own choice. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F77wye02v2qmkavan3tse.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F77wye02v2qmkavan3tse.png" alt=" " width="800" height="367"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Enter your preferred location , click &lt;strong&gt;Extract&lt;/strong&gt; or &lt;strong&gt;Unzip&lt;/strong&gt;. The program will unpack Git’s files into your chosen folder.&lt;br&gt;&lt;br&gt;
For our purposes we will extract it into an E drive (NVME SSD) as a portablity example and proof to show you first.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj0i3hmy74gghe710cm93.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj0i3hmy74gghe710cm93.png" alt=" " width="780" height="385"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can check if Git exists in your computer PATH or what version of Git it has with &lt;code&gt;Git --version&lt;/code&gt; and where is it stored in your PATH as via &lt;code&gt;where git&lt;/code&gt; command. &lt;br&gt;
More on PATH later.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Note : It's possible that the first time your extraction may fail, don't worry and go ahead and try again, sometimes the extraction fails because you may not have created the &lt;em&gt;PortableGit&lt;/em&gt; folder , e.g. in &lt;code&gt;E:\Test-Folder\PortableGit&lt;/code&gt;  the folder &lt;em&gt;PortableGit&lt;/em&gt; may not be created. &lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Portability Test
&lt;/h2&gt;

&lt;p&gt;Now let's perform a portability test.&lt;/p&gt;

&lt;p&gt;We will cut and paste the Portable Git folder into a removable USB flash drive, and then test whether Git still works correctly from the new location.&lt;/p&gt;

&lt;p&gt;This helps verify that Portable Git can run independently without requiring installation or administrator access.&lt;/p&gt;

&lt;p&gt;After moving the folder to the USB drive, open Command Prompt inside the Portable Git directory and run:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fniyedm4l86iqdp9rqwp3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fniyedm4l86iqdp9rqwp3.png" alt="screenshot description" width="794" height="648"&gt;&lt;/a&gt; &lt;/p&gt;

&lt;h3&gt;
  
  
  Running Portable Git and Checking It Works
&lt;/h3&gt;

&lt;p&gt;At &lt;code&gt;F:\PortableGit&lt;/code&gt; the portable Git is moved to and available, now we do a test run by running &lt;strong&gt;Git Command Prompt&lt;/strong&gt; from the folder without seeking any permissions.&lt;/p&gt;

&lt;p&gt;👉 Double click &lt;code&gt;git-cmd.exe&lt;/code&gt; , a command line interface should appear. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;In this Git CMD window, type:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight batchfile"&gt;&lt;code&gt;  &lt;span class="kd"&gt;git&lt;/span&gt; &lt;span class="na"&gt;--version
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You should see output like &lt;code&gt;git version 2.54.0.windows.1&lt;/code&gt; (version number may vary). This confirms Git is working.  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Next, type:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight batchfile"&gt;&lt;code&gt;  &lt;span class="nb"&gt;where&lt;/span&gt; &lt;span class="kd"&gt;git&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This shows the path(s) where your Git is executing from. In the Git CMD shell, it will usually point to your USB path (e.g. &lt;code&gt;F:\PortableGit\cmd\git.exe&lt;/code&gt;), indicating you’re using the portable Git. &lt;/p&gt;

&lt;h2&gt;
  
  
  What is PATH, Git-CMD , Git-Bash ?
&lt;/h2&gt;

&lt;p&gt;### PATH &lt;br&gt;
 PATH is an environment variable in operating systems (Linux, macOS, Windows) that tells your system where to look for executable programs when you type a command.&lt;br&gt;
 Simply put, they are a bundle of directories to find and recognise commands in a command line interface.&lt;br&gt;
 Since portable git resides in a removable USB drive, it is not added to PATH. &lt;/p&gt;

&lt;p&gt;### Git-CMD &lt;br&gt;
 Git-CMD.exe Is a file you find in a portable git folder right alongside Git-Bash.exe, double clicking this file opens a command prompt which is simply a windows command prompt but with PATH configured for your portable git.&lt;br&gt;
 ### Git-Bash &lt;br&gt;
 Git Bash is a Unix/Linux style terminal that runs on Windows. &lt;/p&gt;

&lt;p&gt;It supports:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Linux Commands on Windows&lt;/li&gt;
&lt;li&gt;Git Commands (pre-configured) [Just like Git-CMD]&lt;/li&gt;
&lt;li&gt;Shell Scripting&lt;/li&gt;
&lt;li&gt;Pipes and Redirection&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Use this if you are more familiar with Linux OS, Shell, or prefer the power of Linux&lt;/p&gt;

&lt;h3&gt;
  
  
  Git Bash vs Windows CMD vs Git CMD
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Feature&lt;/th&gt;
&lt;th&gt;Windows CMD&lt;/th&gt;
&lt;th&gt;Git CMD&lt;/th&gt;
&lt;th&gt;Git Bash&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Git commands&lt;/td&gt;
&lt;td&gt;✗&lt;/td&gt;
&lt;td&gt;✓&lt;/td&gt;
&lt;td&gt;✓&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Windows commands (dir, copy)&lt;/td&gt;
&lt;td&gt;✓&lt;/td&gt;
&lt;td&gt;✓&lt;/td&gt;
&lt;td&gt;Partially&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Linux commands (ls, cat, grep)&lt;/td&gt;
&lt;td&gt;✗&lt;/td&gt;
&lt;td&gt;✗&lt;/td&gt;
&lt;td&gt;✓&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Shell scripting&lt;/td&gt;
&lt;td&gt;✗&lt;/td&gt;
&lt;td&gt;✗&lt;/td&gt;
&lt;td&gt;✓&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Pipes and redirection&lt;/td&gt;
&lt;td&gt;Limited&lt;/td&gt;
&lt;td&gt;Limited&lt;/td&gt;
&lt;td&gt;✓ Full&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Access all drives&lt;/td&gt;
&lt;td&gt;✓&lt;/td&gt;
&lt;td&gt;✓&lt;/td&gt;
&lt;td&gt;✓&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Powered by&lt;/td&gt;
&lt;td&gt;Windows&lt;/td&gt;
&lt;td&gt;Windows&lt;/td&gt;
&lt;td&gt;MINGW (Linux tools)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Setting Git to PATH
&lt;/h2&gt;

&lt;h4&gt;
  
  
  Do you need it ?
&lt;/h4&gt;

&lt;p&gt;&lt;strong&gt;Depends&lt;/strong&gt; on : &lt;br&gt;
 Do you find it convenient to have use your portable git from anywhere on working device - PowerShell, Command Prompt, VS Code terminal ? Then yes !&lt;/p&gt;

&lt;p&gt;But if you are fine with opening Git CMD or Bash by using your mouse and everytime you want to open a new window ? Then not really.&lt;/p&gt;

&lt;h3&gt;
  
  
  Manually adding Git to PATH
&lt;/h3&gt;

&lt;p&gt;When you move your USB to another Windows PC, you can repeat the steps above by launching &lt;code&gt;git-cmd.exe&lt;/code&gt;. But by default, &lt;strong&gt;Windows won’t recognize &lt;code&gt;git&lt;/code&gt; on the command line unless you add it to the PATH&lt;/strong&gt;. Here’s how to test and fix that:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;On the new PC, plug in your USB and open &lt;strong&gt;File Explorer&lt;/strong&gt;. Note the drive letter assigned (e.g. &lt;code&gt;F:&lt;/code&gt;).
&lt;/li&gt;
&lt;li&gt;Open a standard Windows Command Prompt (not Git CMD). In it, type:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight batchfile"&gt;&lt;code&gt;   &lt;span class="kd"&gt;git&lt;/span&gt; &lt;span class="na"&gt;--version
   &lt;/span&gt;&lt;span class="nb"&gt;where&lt;/span&gt; &lt;span class="kd"&gt;git&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If Git is not already installed on the PC, you’ll get an error or no result. If Git &lt;em&gt;is&lt;/em&gt; installed system-wide, &lt;code&gt;where git&lt;/code&gt; might show something like &lt;code&gt;C:\Program Files\Git\cmd\git.exe&lt;/code&gt;. Either way, the portable Git isn’t yet in the PATH.  &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Temporarily add the USB Git to the PATH by running (replace &lt;code&gt;F:&lt;/code&gt; with your actual drive letter):
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight batchfile"&gt;&lt;code&gt;   &lt;span class="kd"&gt;set&lt;/span&gt; &lt;span class="kd"&gt;PATH&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kd"&gt;F&lt;/span&gt;:\PortableGit\cmd&lt;span class="o"&gt;;&lt;/span&gt;&lt;span class="nv"&gt;%PATH%&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Make sure there are no spaces around the &lt;code&gt;=&lt;/code&gt;. This prepends your USB’s Git folder to the PATH for this Command Prompt session.  &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Now type again:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight batchfile"&gt;&lt;code&gt;   &lt;span class="nb"&gt;where&lt;/span&gt; &lt;span class="kd"&gt;git&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You should see two entries: &lt;code&gt;F:\PortableGit\cmd\git.exe&lt;/code&gt; &lt;strong&gt;above&lt;/strong&gt; any &lt;code&gt;C:\Program Files\Git\cmd\git.exe&lt;/code&gt;. The fact that the F: path comes first means your portable Git will be used in this session.  &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Tip:&lt;/strong&gt; Keep your portable Git folder organized. If you want to use it on multiple drives, note the drive letter might change (E:, F:, etc.), so always check and adjust the path accordingly.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ol&gt;
&lt;li&gt;Test Git on this CMD prompt:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight batchfile"&gt;&lt;code&gt;   &lt;span class="kd"&gt;git&lt;/span&gt; &lt;span class="na"&gt;--version
   &lt;/span&gt;&lt;span class="kd"&gt;git&lt;/span&gt; &lt;span class="kd"&gt;init&lt;/span&gt;
   &lt;span class="nb"&gt;mkdir&lt;/span&gt; &lt;span class="kd"&gt;usb&lt;/span&gt;&lt;span class="na"&gt;-test
   &lt;/span&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; &lt;span class="kd"&gt;usb&lt;/span&gt;&lt;span class="na"&gt;-test
   &lt;/span&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="kd"&gt;This&lt;/span&gt; &lt;span class="kd"&gt;is&lt;/span&gt; &lt;span class="kd"&gt;an&lt;/span&gt; &lt;span class="kd"&gt;example&lt;/span&gt; &lt;span class="kd"&gt;text&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="kd"&gt;example&lt;/span&gt;.txt
   &lt;span class="kd"&gt;git&lt;/span&gt; &lt;span class="kd"&gt;add&lt;/span&gt; &lt;span class="kd"&gt;example&lt;/span&gt;.txt
   &lt;span class="kd"&gt;git&lt;/span&gt; &lt;span class="kd"&gt;status&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You should again see Git initialized successfully and the new file listed by &lt;code&gt;git status&lt;/code&gt;. All commands are being run by the portable Git from your USB.  &lt;/p&gt;

&lt;p&gt;Remember, the &lt;code&gt;set PATH=...&lt;/code&gt; command only lasts for that Command Prompt window. If you open a new Command Prompt, you would need to repeat the &lt;code&gt;set PATH&lt;/code&gt; step (or use &lt;code&gt;setx&lt;/code&gt; to make it permanent, which requires admin rights). For occasional use, it’s fine to just do it manually each time.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0t6h77jp6e4mi3cia1xp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0t6h77jp6e4mi3cia1xp.png" alt=" " width="720" height="796"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tip:&lt;/strong&gt; If you ever need to “uninstall” portable Git from a PC, simply delete the extracted Git folder or remove it from the PATH (since it didn’t install, there’s no uninstaller)&lt;/p&gt;

&lt;p&gt;&lt;u&gt;You should now be able to use git as a portable software.&lt;/u&gt;&lt;/p&gt;

</description>
      <category>git</category>
      <category>portable</category>
      <category>productivity</category>
      <category>custom</category>
    </item>
  </channel>
</rss>
