-
의존성 라이브러리
yum install curl-devel yum install expat-devel yum install gettext-devel yum install openssl-devel yum install zlib-devel yum install perl-devel
-
download
wget <https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.9.5.tar.gz>
-
압축풀기
tar xvfz git-2.9.5.tar.gz
-
source directory
cd git-2.9.5 pwd #/root/git-2.9.5
-
configure
#C기반 특징 ./configure --prefix=/usr/local/douzone2021/git #prefix : makefile만듦
-
build
#C기반 특징 make all dox info
-
설치
make install install-doc install-html install-info #확인 /usr/local/douzone2021/git/bin/git --version
-
설정(/etc/profile)
vi /etc/profile #################### #git export PATH=$PATH:/usr/local/douzone20201/git/bin ##################### source /etc/profile #확인 git --version #git version 1.8.3.1
-
git 환경 설정
git config --global user.name "mong-head" git config --global user.email "camara1melon315@gmail.com"
-
연습
mkdir centos-practices cd centos-practices git init echo "# CentOS Practices" > README.md git add . git commit -m "first commit" git push -u origin master git clone (javastudy repository url)
0 댓글