-
GitHub에서 New repository(새로운 저장소) 생성 방법개발 환경 설정/GitHub 활용 2022. 8. 23. 06:23
GitHub에 로그인한 다음 오른쪽 위에 + 아이콘을 클릭합니다. New repository를 선택합니다.
그럼 다음과 같이 Create a new repositroy 페이지로 이동합니다.
▸ Owner(저장소 소유자)* :
현재 로그인된 개인 계정과 자신이 속한 단체(Organization) 중에 선택 가능
▸ Repository name* :
기본적으로 파스칼 표기법(PascalCase), 카멜 표기법(camelCase), 스네이크 표기법(snake_case)으로 작성
개인 계정의 경우 자유롭게 작성
▸ Public or Private(저장소 공개 여부) :
Public은 저장소의 모든 내용을 다른 사용자들이 별도의 인증절차 없이 볼 수 있음
Private는 소유주 혹은 협업자만 볼 수 있음
▸ initialize this repository with(저장소 초기화시 생성할 파일 선택) :
기존 repository를 가져오는 경우 충돌이 발생할 수 있으므로 이 옵션을 사용하지 않음
▸ Add a README file(README 파일 추가) :
README 파일은 저장소를 소개하는 파일로 repository 페이지에 접속했을 때 아래와 같이 보여줍니다.
자세한 사항은 공식문서 참조
공식문서 : About READMEs
About READMEs - GitHub Docs
About READMEs You can add a README file to a repository to communicate important information about your project. A README, along with a repository license, citation file, contribution guidelines, and a code of conduct, communicates expectations for your pr
docs.github.com
▸ Add .gitignore(.gitignore 파일 추가)
.gitgnore 파일은 Git repository에서 작업할 때 추가하지 않는(무시하고 싶은) 폴더나 파일을 정의하는 파일
자세한 사항은 공식문서 참조
공식문서 : Ignoring files
Ignoring files - GitHub Docs
Configuring ignored files for a single repository You can create a .gitignore file in your repository's root directory to tell Git which files and directories to ignore when you make a commit. To share the ignore rules with other users who clone the reposi
docs.github.com
제공파일 : .gitignore templete
GitHub - github/gitignore: A collection of useful .gitignore templates
A collection of useful .gitignore templates. Contribute to github/gitignore development by creating an account on GitHub.
github.com
▸ Choose a license(license 파일 추가)
저장소에 라이센스 파일을 추가, 오픈소스 소프트웨어를 공유하는데 자주 사용
자세한 사항은 공식문서 참조
공식문서 : Licensing a repository
Licensing a repository - GitHub Docs
Choosing the right license We created choosealicense.com, to help you understand how to license your code. A software license tells others what they can and can't do with your source code, so it's important to make an informed decision. You're under no obl
docs.github.com
마지막으로 Create repository를 클릭해서 생성합니다.
'개발 환경 설정 > GitHub 활용' 카테고리의 다른 글