tags:

views:

44

answers:

1

I've already set up a Git repository on GitHub and committed a few changes from my Windows machine.

But tomorrow I'll have to work in this repository from a machine running Ubuntu with limited privilege (i.e. no sudo).

Is there a portable version of Git for Linux? Or some source that allows me to compile and install Git only for the current user?

+3  A: 

You can download the git source and do ./configure --prefix=/home/user/myroot && make && make install to install git to your home directory provided you have the build tools. If you don't have the build-essential package installed (dpkg --list|grep build-essential), you will need to install those to your home directory as well.

Scott
I wouldn't recommend using .git as the directory you install into, that just seems like it's asking for confusion (as git uses directories named .git to store the repo data for a non-bare repos).
Kevin Ballard
oops... I'll edit the path
Scott
Ironically, by default Git configures itself to install into home directory.
Pavel Shved