본문 바로가기

GitOps/Github

[Github] 정리

Local 연동

# 사용자 설정
$ git config --global user.name <name>
$ git config --global user.email <email>

# 저장소 clone
$ git clone https://github.com/<repository>

# token 인증된 저장소로 변경
$ git remote remove origin
$ git remote add origin https://<token>@github.com/<repository>

# local branch를 tracking branch로 변경
$ git push --u origin main

 


PR Template

 

위 사진처럼 root 위치에 pull_request_template.md 파일을 생성해서 템플릿 내용 작성

 

 

 

pr을 날릴 때 자동으로 적용됨

 


Github Pages

Github Pages를 사용하기 위해서는 root 위치에 index.html 파일이 존재해야 함.

 

 

 

위 사진처럼 Setting - Pages - Branch를 main/root로 저장

 

 

 

deploy 링크로 접속하면 index.html 파일을 열 수 있음.

 


Github Release

 

태그 생성 후

 

 

 

제목 및 본문 추가. 필요 시 아래에 binary 파일을 추가할 수도 있다.

 

 

 

마쳤다면 릴리즈 완료

 


Github Release

 

추가 예정