# 소스형상관리(Git/Gitlab)

## Git 설치 및 세팅

### Git 파일 다운로드

{% embed url="<https://git-scm.com/downloads>" %}

※ TortoiseGit - 필요시 사용

{% embed url="<https://tortoisegit.org/download/>" %}

### Global Config

```bash
//user
git config --global user.name "John Doe"
git config --global user.email johndoe@example.com

//한글파일명 사용
git config --global core.quotepath false
```

## Gitlab 접속 및 SSH Key 등록

### Gitlab 접속 URL

{% embed url="<http://gitlab.mesdev.com:30000/>" %}

### Key 생성

Git Bash 에서 키생성 (RSA)

![Enter Enter ... 기본값으로 생성](/files/-M6coBn0Qde6Pso1gGqr)

Public Key 등록\
C:\Users\계정.ssh\id\_rsa.pub 파일의 내용을 User Settings – SSH Keys에 등록

![](/files/-M6coJWAa4FQL5nWJeoO)

## Branch 전략 및 Commit 규칙

### Branch 전략

* master, develop, tag, hotfix
* develop/개발자이니셜

  ex) develop/dhkwak

### Commit 규칙

* Commit 시점\
  : 기능 추가 기준으로 커밋 할 것
* Comment 작성\
  : 프로그램명(프로그램코드) 추가기능
* Merge(Pull) Request\
  : hotfix를 제외하고 프로그램단위로 요청

### 유의사항

* 일 단위(백업용도)로 커밋하지 말 것
* Develop Branch외 push 금지 (즉시 삭제함)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.bpackcore.com/git-gitlab.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
