양쪽 이전 판
이전 판
다음 판
|
이전 판
|
wiki:3party:scm:git:gitlab [2020/07/22 21:31] hylee |
wiki:3party:scm:git:gitlab [2023/02/10 19:11] (현재) dhan |
====== GitLab ====== | ====== GitLab ====== |
| <WRAP left notice 80%> |
| * description : Gitlab 사용법 기술 |
| * author : 주레피 |
| * email : dhan@repia.com |
| * lastupdate : 2020-07-30 |
| </WRAP> |
| <WRAP clear/> |
| |
| ===== 주요 명령어 ===== |
| gitlab 설정 파일 |
| <code> |
| cd /opt/gitlab/bin |
| $> sudo -s vi /etc/gitlab/gitlab.rb |
| </code> |
| \\ |
| gitlab 시작 및 종료 |
| <code bash> |
| cd /opt/gitlab/bin |
| $> sudo -s gitlab-ctl start |
| $> sudo -s gitlab-ctl stop |
| </code> |
| [[https://ipex.tistory.com/entry/gitlab-%EA%B8%B0%EB%B3%B8-%EC%84%A4%EC%A0%95|gitlab 기본 설정]] \\ |
| \\ |
| gitlab 재 설정 후 재 시작 |
| <code bash> |
| cd /opt/gitlab/bin |
| $> sudo -s gitlab-ctl reconfigure |
| </code> |
| \\ |
| gitlab 로그 확인 |
| <code> |
| cd /opt/gitlab/bin |
| $> sudo -s vi /var/log/gitlab/gitlab-rails/production.log |
| </code> |
| |
| ===== ssh key 생성 ===== |
| Windows |
<code> | <code> |
Git Bash 실행 | Git Bash 실행 |
| |
<code> | <code> |
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDPIwryasRwVs49BA7Lst0DqVhyKzuLNkivYKC6+cDRNBjrBX/DLDKbIE+gMcdvV40rUcCXsEXVKhgPZGLQAo4IxlL/WUM2972UvelHVhVA18S3iKzMjIOLkt7CSSiFsej3FWViiiRjnD2ySMXCcbqLbdMkYRAqnCPcnjfhvMVk+yWErc+uES+RnajuSyKKa5zsLnPVRtCWqS87mqtPo7AYvnLTn2LRUXOLp2NOfCceqifzUAhBvRlybASh35NLcH4qSPzaflEJwBiW4keMb6mlKeQ8TICtHGn9DOCOLhk+mmPejyca62PxaQJK+9Ov0P+3l4AqxSx/ZpKfoiKYimFJ dhan-yoga@REPIA-DHAN | ssh-rsa AAAAB3..............................................사용자@컴퓨터이름 |
</code> | </code> |
| |
| |
| |
| |
| |
| |
<code> | <code> |
| |
</code> | </code> |
| |
| <code> |
| <?xml version="1.0" encoding="UTF-8"?> |
| <projectDescription> |
| <name>keis_monitoring_web_2020</name> |
| <comment></comment> |
| <projects> |
| </projects> |
| <buildSpec> |
| <buildCommand> |
| <name>org.eclipse.wst.common.project.facet.core.builder</name> |
| <arguments> |
| </arguments> |
| </buildCommand> |
| <buildCommand> |
| <name>org.eclipse.jdt.core.javabuilder</name> |
| <arguments> |
| </arguments> |
| </buildCommand> |
| <buildCommand> |
| <name>org.eclipse.m2e.core.maven2Builder</name> |
| <arguments> |
| </arguments> |
| </buildCommand> |
| <buildCommand> |
| <name>org.springframework.ide.eclipse.core.springbuilder</name> |
| <arguments> |
| </arguments> |
| </buildCommand> |
| <buildCommand> |
| <name>org.springframework.ide.eclipse.boot.validation.springbootbuilder</name> |
| <arguments> |
| </arguments> |
| </buildCommand> |
| </buildSpec> |
| <natures> |
| <nature>org.springframework.ide.eclipse.core.springnature</nature> |
| <nature>org.eclipse.jdt.core.javanature</nature> |
| <nature>org.eclipse.m2e.core.maven2Nature</nature> |
| <nature>org.eclipse.wst.common.project.facet.core.nature</nature> |
| </natures> |
| </projectDescription> |
| </code> |
| |
| ===== 백업 ===== |
| * [[https://yscho03.tistory.com/129|GitLab 백업]] |
| ===== 설치 ===== |
| [[https://hreeman.tistory.com/m/78?category=597879|CentOS 7 에서 GitLab 설치하기]] \\ |
| |
| |
| ===== Tip ===== |
| * 프로젝트 이벤트 알람 보내기 |
| - ${프로젝트명} > Settings > Integrations > Emails on push 이동 |
| - 옵션을 체크한 이후 마지막에 메일 주소를 입력하고 저장하면 됩니다. |
| |
| {{:wiki:3party:scm:git:gitlab:gitlab_email.png?400|프로젝트 이벤트 알람 보내기}} |
| |
| |
| ===== Troubleshooting ===== |
| [[https://linux.systemv.pe.kr/gitlab-%ED%8C%A8%EC%8A%A4%EC%9B%8C%EB%93%9C-%EB%A6%AC%EC%85%8B%ED%95%98%EA%B8%B0/|깃랩 웹('root') 패스워드 리셋하기]]\\ |
| [[https://snepbnt.tistory.com/280 | 깃랩 pull 에러 날 경우 1]]\\ |
| [[https://song8420.tistory.com/138 | 깃랩 pull 에러 날 경우 2]]\\ |
| |
| {{tag>주레피 gitlab}} |
| |