본문으로 바로가기

Git 사용하기

category Server/Xpenology 2018. 6. 27. 10:02
반응형

1. 패키지 설치

패키지센터 - 설정 메뉴 - 패키지 소스에서 패키지 저장소 주소를 추가해준다.

git은 아래 중에서 http://packages.synocommunity.com/ 

사이트에서 제공하지 싶다.

따라서 이 주소만 넣어줘도 나올 것 같다.


그리고 일반 탭에서 패키지 신뢰수준에서

모든 게시자 로 선택해준다.



그리고 나서 좌측 커뮤니티를 누르면, 

패키지 목록들이 주욱 나올것이다.

이중에서 Git를 설치하자.

아래는 이미 설치해서 설치됨 으로 표시되어 있다.



2. 패키지 설치확인 및 모든 위치에서 실행되게 설정하기.

putty로 접속후 이제 아래 처럼 확인해보자.


진한 검정색 순서로 .

git 패키지가 설치되어 경로가 보이고 이 경로를 /bin 아래에 링크? 해주는 순서이다.


station> ls /volume1/@appstore/git/bin/

c_rehash            git-receive-pack    openssl

curl                git-shell           xmlwf

git                 git-upload-archive

git-cvsserver       git-upload-pack

station> cd /bin/

station> ln -sf /volume1/@appstore/git/bin/git

station> git

usage: git [--version] [--help] [-C <path>] [-c name=value]

           [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]

           [-p | --paginate | --no-pager] [--no-replace-objects] [--bare]

           [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]

           <command> [<args>]



git 명령을 내려보면 도움말이 잘 나옴을 볼 수 있다.


이제 git허브로 부터 clone하는 명령어들등, git을 사용할 수 있게 되었다.


반응형