[git-users] Re: portable git?
On Wednesday, June 26, 2013 10:00:13 PM UTC+2, supertol wrote: > Is there any version of git that works as a standalone executable file > (can still depend on libraries, ofc). > Means, i'd be lookinf for a git.exe (+ dependencies) that i can just drop > to a folder and use to initialize a repo in that folder, without having git > installed and without git somehow 'polluting' the system. > > A true standalone command line tool. > > It *seems* to work when i copy the entire git/bin folder over. Can anyone > confirm this works, or does that have side effects? > How about using libgit2 to do the Git operations you require (assuming that you won't need the entire Git command line toolset)? If you're looking to do just a few set operations, perhaps it's possible for you to just do them via libgit2: http://libgit2.github.com/ http://ben.straub.cc/blog/categories/libgit2/ -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [git-users] Re: portable Git
That sounds like a good idea to me. On Jan 1, 2013 5:03 AM, "Gabby Romano" wrote: > Thanks John. > > From what I know about jenkins, if it ran the install, it won't run again > by default unless you upgrade the version of whatever you are installing. > so this process, as good as it is, may not be good for me. I was hoping to > get a process much similar the what happens between jenkins and java jdk. > > in anyway, I am starting to think of using Git as a shared resource on a > mounted drive rather than local install. you think that will work ? > > On Monday, December 31, 2012 6:22:54 PM UTC+2, John McKown wrote: >> >> OOPS, the zip command should be >> >> zip -R git-zip.zip git >> >> I forgot the -R switch to recurse the subdirectories. >> >> On Sunday, December 30, 2012 9:01:24 AM UTC-6, Gabby Romano wrote: >>> >>> hi all - does anyone know where I can fine a portable version of Git for >>> Linux so no install is needed (yum or anything) ? >>> >>> Thanks. >>> >> -- > > > --
[git-users] Re: portable Git
Thanks John. >From what I know about jenkins, if it ran the install, it won't run again by default unless you upgrade the version of whatever you are installing. so this process, as good as it is, may not be good for me. I was hoping to get a process much similar the what happens between jenkins and java jdk. in anyway, I am starting to think of using Git as a shared resource on a mounted drive rather than local install. you think that will work ? On Monday, December 31, 2012 6:22:54 PM UTC+2, John McKown wrote: > > OOPS, the zip command should be > > zip -R git-zip.zip git > > I forgot the -R switch to recurse the subdirectories. > > On Sunday, December 30, 2012 9:01:24 AM UTC-6, Gabby Romano wrote: >> >> hi all - does anyone know where I can fine a portable version of Git for >> Linux so no install is needed (yum or anything) ? >> >> Thanks. >> > --
[git-users] Re: portable Git
OOPS, the zip command should be zip -R git-zip.zip git I forgot the -R switch to recurse the subdirectories. On Sunday, December 30, 2012 9:01:24 AM UTC-6, Gabby Romano wrote: > > hi all - does anyone know where I can fine a portable version of Git for > Linux so no install is needed (yum or anything) ? > > Thanks. > --
[git-users] Re: portable Git
Thanks. I guess it does, if you are install jenkins on a system to which you are not root. Have you considered, on your "base" system, something like: cd ~ git clone https://github.com/git/git cd git make configure ./configure --prefix=/jenkins/subdirectory/git #change as needed mkdir -p /jenkins/subdirectory/git make all doc #from INSTALL file doc make install install-doc install-html cd /jenkins/subdirectory zip git-zip.zip git to install: cd /jenkins/subdirectory rm -rf git #remove old git files - needed? unzip /path/to/git-zip.zip I don't really know if you need to change environment variables such as PATH and LIBPATH on the execution systems. I am not sure, but I would guess that the "/jenkins/subdirectory" will need to be the same on all slaves, so that git will know where it was installed. I don't know if that path is "hard coded" some how into the execution programs. Hopefully if I did something outrageously wrong, one of the more knowledgeable people, such as Konstantin, will indicate where I went wrong. On Sunday, December 30, 2012 9:01:24 AM UTC-6, Gabby Romano wrote: > > hi all - does anyone know where I can fine a portable version of Git for > Linux so no install is needed (yum or anything) ? > > Thanks. > --
Re: [git-users] Re: portable Git
no, that is the reason..your imagination is just fine. I want to automate creation of jenkins Linux slave machines and the environment. I also want to control the version of Git installed on the slaves so it will be aligned with all slaves. you can add an installer on jenkins and have it deployed on the slave as a tar.gz file and than run with it. whenever you wan to upgrade git version, you create a new pack and deploy. this is done also since we don't run as root on the slave. make sense to you ? On Mon, Dec 31, 2012 at 4:22 PM, John McKown wrote: > I can't help with this, but I can't help wondering why you want to run git > on an arbitrary machine. Also, do you mean on a host running Windows, > Linux, one of the *BSD's? You can't have a git which will run regardless of > the host OS. Of course, you might be able to have a Windows git in one > subdirectory, Linux in another, FreeBSD in another, and so on. I guess that > would be on a Flash drive, perhaps partitioned with one partition per OS, > or maybe just a VFAT partition (). > > I just can't figure out why you need to have git on a machine > "temporarily". Likely due to lack of imagination on my part. > > > On Sunday, December 30, 2012 9:01:24 AM UTC-6, Gabby Romano wrote: >> >> hi all - does anyone know where I can fine a portable version of Git for >> Linux so no install is needed (yum or anything) ? >> >> Thanks. >> > -- > > > --
[git-users] Re: portable Git
I can't help with this, but I can't help wondering why you want to run git on an arbitrary machine. Also, do you mean on a host running Windows, Linux, one of the *BSD's? You can't have a git which will run regardless of the host OS. Of course, you might be able to have a Windows git in one subdirectory, Linux in another, FreeBSD in another, and so on. I guess that would be on a Flash drive, perhaps partitioned with one partition per OS, or maybe just a VFAT partition (). I just can't figure out why you need to have git on a machine "temporarily". Likely due to lack of imagination on my part. On Sunday, December 30, 2012 9:01:24 AM UTC-6, Gabby Romano wrote: > > hi all - does anyone know where I can fine a portable version of Git for > Linux so no install is needed (yum or anything) ? > > Thanks. > --