Git - GitHub Desktop

garamnoh·2023년 4월 11일
0

etc.

목록 보기
5/7

GitHub GUI툴로 GitHub Desktop을 사용해서 repository 등록 및 커밋

Github 회원 가입 및 Github Desktop 설치


github : https://github.com/

github desktop : https://desktop.github.com/


Github Desktop 설정

  1. github desktop 설치

  2. github 아이디 연동
    File - Options - Accounts 에서 설정

  3. Repository 생성 ( 기존 프로젝트를 Repository에 연결 )
    File - New repository
    → Name, Description, Local path 설정
    Create repository

  4. .gitignore 설정
    Repository 폴더로 이동하면 .gitignore 파일이 생성되어 있음
    .gitignore 파일에 제외하고 싶은 파일들을 설정하고 저장


.gitignore 생성 방법

Repository를 공유하는 사용자 마다의 환경이 다르기 때문에 환경파일들을 제외하기 위해,
비밀 번호 등의 정보가 있는 설정 파일들을 제외하기 위해서 ignore 파일을 사용

https://www.gitignore.io/
운영체제, 개발 환경, 언어 등을 선택하면 gitignore 파일을 생성해 줌

Ex> eclipse, windows 입력 → 생성


  1. remote repository 와 local repository 연결
    Publish repository 클릭

  2. github 확인
    https://github.com/ 에서 repository 확인

0개의 댓글