Difference between revisions of "Git"
From Linuxintro
imported>ThorstenStaerk |
imported>ThorstenStaerk |
||
Line 10: | Line 10: | ||
* unpack it | * unpack it | ||
tar xvzf git-1.7.6.tar.gz | tar xvzf git-1.7.6.tar.gz | ||
− | * make sure you have | + | * make sure you have all needed [[dependencies]] like this: |
− | [[yast]] -i zlib-devel | + | [[yast]] -i zlib-devel python-devel |
* [[build]] it | * [[build]] it | ||
cd git-1.7.6/ | cd git-1.7.6/ | ||
./configure && make -j8 && make install | ./configure && make -j8 && make install | ||
+ | * test it by calling | ||
+ | # git version | ||
+ | git version 1.7.6 | ||
= How to ... = | = How to ... = |
Revision as of 10:30, 1 August 2011
Git is a revision control system that allows you to clone complete software repositories among developers.
Get git
Here is an example how to download and install git. This example downloads version 1.7.6 of git and must be executed as root user under a default installation of SLES 10:
- Download git
wget http://www.kernel.org/pub/software/scm/git/git-1.7.6.tar.gz
- if this does not work, you may have to set your proxy and redo it like this
export http_proxy=proxy.company.com:8080 wget http://www.kernel.org/pub/software/scm/git/git-1.7.6.tar.gz
- unpack it
tar xvzf git-1.7.6.tar.gz
- make sure you have all needed dependencies like this:
yast -i zlib-devel python-devel
- build it
cd git-1.7.6/ ./configure && make -j8 && make install
- test it by calling
# git version git version 1.7.6
How to ...
... get a past version
repository # git reset c3c9e4d97f0668235a5b Unstaged changes after reset: M README
git vs svn translation
svn | git | purpose |
---|---|---|
svn co | git clone | get the software |
svn up | git pull | update to the latest version |