Comments (5)
It sounds like you downloaded the regular version of Git for Windows, not the PortableApps.com-packaged version from this repository.
You can download the portable installer from https://github.com/sheabunge/GitPortable/releases/latest
Once downloaded, open Git by clicking on the GitBashPortable.exe launcher. Running a command like
git config --global --list --show-origin
will confirm that configuration is being loaded from the GitPortable/Data/home/.gitconfig
file instead of from the local machine.
from gitportable.
Thanks, https://github.com/sheabunge/GitPortable/releases/latest version seems really portable.
But I don't understand why this version is not portable:
from gitportable.
That is a different product, released by the Git for Windows project. It's really just a version of Git that you can extract to a directory instead of needing to install. It may be a little misleadingly named, but have nothing to do with its development or release whatsoever, so you'll need to take it up with them.
Nevertheless, the lack of true portability in that version is primarily what makes this one useful – it adds the portable configuration possibilities that aren't present in the original project.
from gitportable.
Nevertheless, the lack of true portability in that version is primarily what makes this one useful – it adds the portable configuration possibilities that aren't present in the original project.
May I ask what these are? @sheabunge
I just spent a week figuring out how to get the above mentioned portable version of Git for Windows to actually be portable (Didn't notice this repo). My biggest concern is being able to update to the newest release of Git for windows, which if I read right your release does support manual upgrades?
What I ended up doing to the Git for Windows release is writing and compiling a python script to set a custom HOME variable that is relative to git-bash.exe. The script then launches git-bash.exe, which inherits that HOME variable and uses it. In essence a wrapper for the wrapper (git-bash.exe). Before doing this things would get written to my C:\Users\USERNAME folder, but after this I don't see anything being left behind by either Git-Bash or its built-in programs. To upgrade I just have to replace the files with a simple copy paste of the newest portable release. Since I compiled it into a .exe, it shows up in the PortableApps Launcher and works just fine (I just hide the original git-bash.exe).
Just curious if there's something more I'm missing with my setup that you include in yours. I also use PortableApps, though some of my programs (Like Git-Bash) are just portable versions released directly by the publisher (mirc for example)
from gitportable.
@LeonT-A This package of Git for Windows uses the PortableApps.com launcher configuration to set the HOME variable to a portable data folder, as well as rewriting absolute paths in .gitconfig
to prevent things from breaking if the directory or drive letter changes.
from gitportable.
Related Issues (20)
- Not for Ubuntu HOT 2
- bash.exe: warning: could not find /tmp, please create! HOT 2
- cannot find menu "git pull" in GitGUIPortable.exe HOT 4
- gitk launcher HOT 2
- It doesen't work
- bash.exe: warning: could not find /tmp, please create! HOT 3
- Launching git-bash vs git-gui from menu HOT 6
- Git bash application launcher disapeared HOT 2
- Install up-to-date git on top of the existing GitPortable installation HOT 3
- Traojan warning HOT 1
- .ssh/config location
- Source code HOT 1
- Github release should include the newest build HOT 1
- Submit to PA.com HOT 2
- post-install.bat is not run after install HOT 1
- general questions HOT 3
- Can't run git portable when usual git bash is open HOT 2
- Can't Access Environment Variables with non ASCII characters [a-zA-Z0-9_] HOT 1
- Correct way to set up a Windows Terminal profile? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gitportable.