Miscellaneous

시놀로지 git 서버 최초 레포지토리 생성

[혜안] 2022. 8. 11. 11:22
728x90

자주 사용하지 않는건 기억에서 지워버리네요.

개인적이고 민감한 코드들은 별도의 시놀로지 git 서버에 올리고 있습니다.

 

시놀로지 git 서버는 github처럼 별도의 UI가 없기 때문에, 커맨드로 최초 레포지토리 설정을 해주어야 합니다.

일단 시놀로지 관리화면에서 git 활성화를 했다는 전제로 이후 과정입니다.

생성할 레포지토리 이름은 mariadb_custom 입니다. (쿠버네티스에 사용할 도커이미지 입니다)

 

시놀로지 git 서버에서 생성할 레포지토리 이름으로 폴더 생성 후 git 초기화

$ mkdir mariadb_custom.git
$ cd mariadb_custom.git/
$ git init --bare

 

소스를 올릴 작업 호스트에서 git 초기화 및 레포지토리 추가

$ git init
$ git config --local user.name [git계정]
$ git config --local user.email [메일주소]
$ git remote add mariadb_custom ssh://[git계정]@[git서버IP]:[ssh포트]/var/services/homes/[git계정]/mariadb_custom.git

 

728x90