sheabunge / gitportable Goto Github PK
View Code? Open in Web Editor NEWPortable version of Git for Windows
Home Page: http://portableapps.com/node/34685
Portable version of Git for Windows
Home Page: http://portableapps.com/node/34685
This won't work on ubuntu, can I have any alternative for this?
Is it safe to change the App\AppInfo\Launcher\GitPortable.ini to launch git-bash instead of the git-gui? I'd prefer that the menu entry the git bash (or maybe we could have an additional menu item that does this?)
Thanks in advance.
Would you consider submitting this app to the PA.com official repo? I'd be happy to help support it, should it be accepted. I use this build near daily.
Thanks
I tried pushing something to github and it said:
"could not read username for 'https://github.com': no such file or directory"
Also I don't know how password settings would work (i'm not experienced with git)
unpacked
started GitGUIPortable.exe
created empty repository on github
clicked clone, cloned my freshly created empty repository to disk
unstaged changes lists some random garbage files, all with .tmp extension. Clicking rescan generates new group of random garbage tmp files.
clicking on one of them generates popup "error loading file, could not read xx.tmp, no such file or dir"
*First time using git gui. No idea what Im doing.
While trying to customize my .bashrc/.bash_profile, I was unable to retrieve the values from environment variables that included :
, such as...
PAL:Drive=V:
PAL:DriveLetter=V
I tried various different quotes and {} methods, but none of them worked. These variables are incredibly useful for things like adding directories to the $PATH and for creating custom variables to be used in programs launched from the terminal.
Is there no way to access the value of these variables from within Git-Bash/.sh? At the moment, my best solution is to parse the variables that are ASCII compliant. So to get the portable drive litter, I would do...
PORTABLE_DRIVE=${HOME:1:1}
I utilize Git Portable via the git GUI exclusively, and I am continuing to received the above error when pushing to repos, including using 2.7.2 DT1.
I see in both launcher's ini's that PATH is not set as an Environment Variable, possibly this is why?
I use a git repo with ssh-key authentification.
So I have to set IdentityFile in .ssh/config but actually this file is loaded from my user folder
not in GitPortable/Data/home.
I get this error when pulling from a repo:
$ git pull
bash.exe: warning: could not find /tmp, please create!
Any ideas how to fix this?
Robert
I'm having trouble finding binaries for a Windows cmd.exe box. DO you have the link for that? Thanks.
Is the source available for the GitPortable itself? I'm unable to locate anything beyond the binaries.
There isn't a release yet for this new online build. Also the README should be updated to reflect the new online process.
Thanks!
If you want up-to-date git binaries this is how I made a fresh GitPortable installation.
https://github.com/sheabunge/GitPortable
C:\apps\GitPortable\
folderhttps://github.com/git-for-windows/git/releases
C:\apps\GitPortable\App\Git
to Git_OLD folderC:\apps\GitPortable\App\Git
folderC:\apps\GitPortable\Data\home
C:\apps\GitPortable\App\AppInfo\Launcher\GitPortable.ini
[Launch]
#ProgramExecutable=Git\cmd\git-gui.exe
ProgramExecutable=Git\git-bash.exe
C:\apps\GitPortable\GitPortable.exe
to open a bash consoleC:\apps\GitPortable\Data\home\.bashrc
# Git-friendly prompt showing dirty state
# http://stackoverflow.com/questions/10133173/alter-git-prompt-on-windows
shopt -s promptvars
export GIT_PS1_SHOWDIRTYSTATE=1
export GIT_PS1_SHOWUPSTREAM='verbose git'
export PS1='\[\033[1;36m\]\[\033[0m\]\[\033[1;34m\]\w\[\033[0m\]
\[\033[1;32m\]$(__git_ps1)\[\033[0m\]\$ '
# Enable color support of ls
alias ls='ls --color=auto -alhX'
## shortcut cmdline
function gogitbase
{
cd /c/sd/gitbase/
}
function goproject
{
cd /c/projects/
}
Think I'm missing something...
The Readme file says
It will download Git for Windows as part of the install process.
Does that mean download and install?
Does that mean Git for Windows non-portable? If so, in what way is this a portable version?
Thanks for any replies.
There is one thing that bothers me. As I am using GitPortable to connect to Github I need a home directory featuring my ssh key.
For now I have my /home directory located in \GitPortable\App\Git
:
\home
\orschiro
.ssh\
.gitconfig
In addition I had to modify \GitPortable\App\Git\etc\profile
:
if [ ! -d "$HOME" ]; then
printf "\n\033[31mERROR: HOME directory '$HOME' doesn't exist!\033[m\n\n"
echo "This is an error which might be related to msysGit issue 108."
echo "You might want to set the environment variable HOME explicitly."
printf "\nFalling back to \033[31m/ ($(cd / && pwd -W))\033[m.\n\n"
HOME=/
fi
+ # USER ADDED
+ # Assign HOME to portable pen drive location
+ HOME="/home/orschiro"
+ # normalize HOME to unix path
+ HOME="$(cd "$HOME" ; pwd)"
# normalize HOME to unix path
HOME="$(cd "$HOME" ; pwd)"
Furthermore I have a \github
folder located in \GitPortable\App\Git
which contains all my repos. The drawback is that with every update of GitPortable both the \home
and \github
would get erased.
How can we change GitPortable to create the \home
directory in \GitPortable\Data
, put the .gitconfig in there and let GitPortable find the ssh keys in there?
I am facing this issue so anyone has a solution then let me know. I have stuck on this issue.
I was wondering if it's possible to create a Windows Terminal profile for GitPortable? The title above mentions "correct way" because while I did manage to get Git Bash to open in WT, I don't know if how I did it is the way to go. I'm pretty new to this stuff.
Here's what I tried and what worked in the end:
Created a WT profile with command line set to path\to\PortableApps\GitPortable\GitBashPortable.exe
. Opening a Git Bash tab launches mintty.
Changed the path to \GitPortable\App\Git\bin\bash.exe
. Git Bash runs in the WT tab but the home location isn't the portable one. (That result was pretty obvious since I was bypassing the portable launcher, but I tried anyway)
Found out that you need to use bash.exe instead of git-bash.exe if you don't want mintty to run. Then found GitBashPortable.ini
and noticed that the ProgramExecutable
is Git\git-bash.exe
. I changed that to Git\bin\bash.exe
and also WaitForEXE2
to bash.exe
. Then set the command line in the WT profile back to GitBashPortable.exe. This time when I opened a tab, a new instance of WT launched with the shell running. Running the portable launcher also launches a new WT window.
Finally, I changed the new instance behaviour in WT to attach to the most recently used window. So now, opening a tab with the profile I created launches a new tab in the same window. Closing my tab doesn't affect the new tab, but closing the new tab also closes my tab. Running the portable launcher also opens a new tab when WT is already running.
So basically, the WT profile is a shortcut to the portable launcher which in turn runs bash.exe in a new instance of WT.
Is there a better way of getting this to work?
Will editing the launcher INI like that cause any limitations or complications that I'm not able to think of?
And a final question (in case this is the only way), do the INIs get overwritten when GitPortable is updated?
http://article.gmane.org/gmane.linux.kernel/1853266
(Most recent comment on this project: http://portableapps.com/node/34685)
I generally only work with my own repos and GitHub claims to be free of the issue (so ~95% of my Git use), but it would be nice to have an updated client with this issue resolved.
the console doesn't report any errors and a folder briefly flashes up in explorer but disappears when the command finishes running...
edit: sorry, i completely forgot i'm behind a proxy server. the old version completely bypassed it without any configuration but i'm guessing i need to tinker with some settings to get this working...
First of all, thank you very much for making Git available in PortableApps format!
I'm trying to configure git core.editor
and merge.tool
to gVimPortable, which is available at PortableApps.
The problem is that Git Bash opens in root directory, which is mapped to PortableApps\GitPortable\App\Git
. I've tried executing gVim from this directory using ../../../gVimPortable.exe
, but it didn't work.
Is there any commands/variables indicating the path to current dir, which I can use to create a relative path to gVimPortable? Or is it possible to change the root directory to one above GitPortable
?
Was working on git bash and opened another bash terminal and then both closed and the application launcher went missing on C:\Program Files\Git. Hope i can get a solution to this.
From README.portable in PortableGit-*.7z.exe:
*NOTE*: if you decide to unpack the archive using 7-Zip manually, you must
run the `post-install.bat` script. Git will not run correctly
otherwise.
After examining the contents of post-install.bat, it appears to be of particular importance for a 32-bit build of Git, which is in use here.
I just downloaded the portable package from the https://git-scm.com/download/win and extracted this for some directory.
Then i got some configuration:
git config --global commit.gpgsign
And this command returned true
exactly like the main installed version.
Command history is also the same. What is portable in this portable edition?
Git Portable currently includes launchers for git (bash), and git-gui. As it is possible to launch gitk with the base app, I propose that a launcher be created as well.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.