Github 사용법

이주영·2023년 10월 23일
0
  1. github 사용을 위해 git을 세팅해준다.
    • git 설치 여부 확인 : git --version
    • git 설치
      - homebrew를 먼저 설치 : https://brew.sh/
      • homebrew 설치 후 git 설치 : brew install git
  1. 작업할 위치에 저장소(repository)를 만든다.
    • 예) 폴더명 git_test이면 git_test 폴더에서 git init을 해준다.
      git init
  1. 나머지 순서
    • 작업한 파일을 staged해주기 위해 commit을 해준다.
    • remote를 하여 원격저장소와 연결을 해준다.
    • push를 한다.
      git add README.md
      git commit -m "first commit"
      git branch -M main
      git remote add origin https://github.com/2juyoung/simple_test.git
      git push -u origin main
profile
웹퍼블리셔 주영

0개의 댓글