Coder Social home page Coder Social logo

gitportable's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gitportable's Issues

Not for Ubuntu

This won't work on ubuntu, can I have any alternative for this?

Launching git-bash vs git-gui from menu

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.

Submit to PA.com

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

URL's don't seem to work

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)

random *.tmp files listed in unstaged changes

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.

clipboard02

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.

Can't Access Environment Variables with non ASCII characters [a-zA-Z0-9_]

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}

bash.exe: warning: could not find /tmp, please create!

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?

.ssh/config location

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.

Source code

Is the source available for the GitPortable itself? I'm unable to locate anything beyond the binaries.

Install up-to-date git on top of the existing GitPortable installation

If you want up-to-date git binaries this is how I made a fresh GitPortable installation.

https://github.com/sheabunge/GitPortable

  • Install GitPortable_2.13.0_Development_Test_1.paf.exe
  • this file provides basic portable files but git application is quite old
  • my installation goes to C:\apps\GitPortable\ folder

https://github.com/git-for-windows/git/releases

  • Download PortableGit-2.17.0-64-bit.7z.exe (or newer) to have up-to-date git application
  • extract executable to a temporary folder
  • run postinstall.bat script in a temporary folder
  • rename existing C:\apps\GitPortable\App\Git to Git_OLD folder
  • copy new files to C:\apps\GitPortable\App\Git folder
  • delete Git_OLD after few days if all working fine

C:\apps\GitPortable\Data\home

  • this is a git console home folder where .ssh folder and other bashrc settings are stored

C:\apps\GitPortable\App\AppInfo\Launcher\GitPortable.ini

  • edit ini file to change executable to bash console
  [Launch]
  #ProgramExecutable=Git\cmd\git-gui.exe
  ProgramExecutable=Git\git-bash.exe
  • run C:\apps\GitPortable\GitPortable.exe to open a bash console

C:\apps\GitPortable\Data\home\.bashrc

  • edit bashrc settings, provide few shortcut commands
# 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/
}

general questions

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.

home and additional directories in \GitPortable\data

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?

Correct way to set up a Windows Terminal profile?

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?

clone not working with 2.5.1

the console doesn't report any errors and a folder briefly flashes up in explorer but disappears when the command finishes running...

git

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...

Relatives paths in git config

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?

Git bash application launcher disapeared

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.

post-install.bat is not run after install

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.

GitPortable is not portable

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?

gitk launcher

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.