Backup

2022. 12. 27. 22:57·Git
728x90

1. remote

  • $ git remote add origin https://github.com/IfUwanna/Tool.git 원격저장소와 연결
  • $ git remote -v 현재 연결되어 있는 원격 레파지토리를 확인
  • $ git remote remove origin 원격 저장소의 연결을 제거

2. push

  • $ git push -set--upstream orign master $ git push -u orign master

3. clone

4. pull

  • git pull vs git fetch
  • git pull does a git fetch followed by a git merge.

💬 upstream vs origin

  • otherRepository(upstream) -> (fork) myRepository(origin)
  • otherRepository(upstream) -> (git pull) myRepository(local)
  • myRepository(origin) -> (git pull) myRepository(local)

 

  • fork

https://pers0n4.io/github-remote-repository-and-upstream/

728x90
'Git' 카테고리의 다른 글
  • git submodule / subtree
  • Branch, Checkout
  • Git Version Control
Karla Ko
Karla Ko
𝘾𝙤𝙣𝙩𝙞𝙣𝙪𝙤𝙪𝙨𝙡𝙮 𝙄𝙢𝙥𝙧𝙤𝙫𝙞𝙣𝙜, 𝘾𝙤𝙣𝙨𝙩𝙖𝙣𝙩𝙡𝙮 𝘿𝙚𝙫𝙚𝙡𝙤𝙥𝙞𝙣𝙜 𝙔𝙚𝙨!
    250x250
  • Karla Ko
    karlaLog
    Karla Ko
  • 전체
    오늘
    어제
    • Total (467)
      • Spring (19)
      • JPA (4)
      • Cloud & Architecture (15)
        • Kubernetes (5)
        • Docker (3)
        • MSA (2)
        • GCP (1)
        • AWS (4)
      • Devops (1)
      • Message Queue (4)
        • Kafka (2)
        • RabbitMQ (2)
      • Git (4)
      • DB (4)
      • Java (9)
      • Python (4)
      • CS (11)
        • OS (8)
        • Network (2)
        • Algorithm (1)
      • Coding Test (392)
        • programmers (156)
        • Graph (43)
        • DP (37)
        • Search (31)
        • Tree (13)
        • Data Structure (26)
        • Combination (12)
        • Implement (18)
        • Geedy (23)
        • Sort (7)
        • Math (21)
        • geometry (2)
  • 블로그 메뉴

    • 홈
  • 링크

  • 공지사항

  • 인기 글

  • 태그

    조합
    자료구조
    플로이드워셜
    월간코드챌린지
    그래프
    LIS
    큐
    정렬
    구간합
    BFS
    백준
    DP
    이분탐색
    덱
    최대공약수
    알고리즘
    파이썬
    프로그래머스
    DFS
    힙
    최단거리
    트리
    재귀
    스택
    최소신장트리
    다익스트라
    그리디
    구현
    동적계획법
    Algorithm
  • hELLO· Designed By정상우.v4.10.3
Karla Ko
Backup
상단으로

티스토리툴바