[Git] 로컬 저장소와 원격 저장소 연동하기

2021. 3. 20. 22:46·Git

1. Github 사이트에서 새로운 레포지토리 생성하기 github.com/new 

 

GitHub: Where the world builds software

GitHub is where over 56 million developers shape the future of software, together. Contribute to the open source community, manage your Git repositories, review code like a pro, track bugs and feat...

github.com

 

2. 생성한 레포지토리 주소 복사하기 

 

3. 연동할 로컬 저장소 위치로 이동하기. ( ex) C:\Users\HyeonWoo\repository)

 

4. git init

 

5. git remote add origin [ 2 에서 복사한 주소 ] 

 

6. git commit -m "[ 커밋메시지 입력하기 ( ex) initialize my app) ]"

 

7. git add . (모든 파일을 원격 저장소에 추가)

 

8. git push origin master (master branch에 올리기)

 

노마드코더님 클론코딩 진행하면서 알게된 소소한 팁이다.

'Git' 카테고리의 다른 글

Github Foundations 준비  (4) 2024.09.06
Github Action으로 Android 앱 github Release에 배포하기  (0) 2023.07.06
PC의 stash를 다른 PC에 적용하기  (0) 2023.07.05
소스트리 push 실패 (오류코드 까먹음)  (0) 2022.01.11
macbook SourceTree Push 오류 /home/username/.ssh/config: line 5: Bad configuration option: IdentifyFile/home/username/.ssh/config: terminating, 1 bad configuration optionsfatal: The remote end hung up unexpectedly  (0) 2022.01.04
'Git' 카테고리의 다른 글
  • Github Action으로 Android 앱 github Release에 배포하기
  • PC의 stash를 다른 PC에 적용하기
  • 소스트리 push 실패 (오류코드 까먹음)
  • macbook SourceTree Push 오류 /home/username/.ssh/config: line 5: Bad configuration option: IdentifyFile/home/username/.ssh/config: terminating, 1 bad configuration optionsfatal: The remote end hung up unexpectedly
HWBB
HWBB
흥미주도개발자
  • HWBB
    코딩공부방
    HWBB
  • 전체
    오늘
    어제
    • 분류 전체보기 (164)
      • 알고리즘 (61)
      • Android (27)
      • Kotlin (0)
      • Java (2)
      • Design Pattern (2)
      • React Native (1)
      • Python (0)
      • TIL (21)
      • Unity (0)
      • React (2)
      • AWS (0)
      • Git (11)
      • MFC (1)
      • Spring (4)
      • Computer Science (4)
      • Vue (4)
      • Infra (6)
      • 박현우 (10)
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
  • 링크

    • 승윤이
  • 공지사항

  • 인기 글

  • 태그

    baekjoon
    깃허브
    코틀린
    안드로이드
    Kotlin
    Android
    코딩테스트
    coding
    프로그래머스
    algorithm
    programmers
    자바
    android studio
    안드로이드 스튜디오
    GIT
    알고리즘
    Java
    github
    AWS
    백준
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.3
HWBB
[Git] 로컬 저장소와 원격 저장소 연동하기
상단으로

티스토리툴바