Gitlab 연동

Gitlab

Install

1. Gitlab 연동

2. SSH Key 만드는 법

$ ssh-keygen -t rsa -b 4096 -C "shpimit@nate.com"
$ passphase 입력
$ cd .ssh
$ cat id_rsa.pub
# windows에서 clipboard 복사
$ cd ..
$ clip < ~/.ssh/id_rsa.pub
# Github Test
$ ssh -T git@github.com

3. gitlab github동시사용

4. gitlab 최초 등록

  • MINGW64 사용, intellij에서는 잘 안됨

` .gitconfig [user] name = shpimit email = shpimit@nate.com [includeIf “gitdir:~/nocv/”] path = .gitconfig-gitlab [includeIf “gitdir:~/thymeleaf/”] path = .gitconfig-gitlab

.gitconfig-gitlab [user] email = shpimit@kakao.com name = prugio [gitlab] user = shpimit `

  • MINGW64에서 해야 정상 처리 됨
# .gitconfig 파일 무조건 확인  gitlab 연결 부분 있는지
$ git remote -v
# 원격 끊기
$ git remote remove origin
# 최초 등록, 원격 gitlab에 repository를 만들지 않아야 정상적으로 된다
$ git remote add origin https://gitlab.com/prugio/thymeleaf.git
$ git branch -M main
$ git push -uf origin main

5. Gradle Cache와 GitLab-CI Cache로 매번 의존성파일 다운로드를 하는 짓을 막아보자.

6. gradle 활용

shpimit/nocv:1.0.0-SNAPSHOT

opencv & react react & tensorflow tensorflow.js tensorflow.js mobx mobx mobx