[GIT] Fork한 Repository 동기화 1. 원본 Repository를 원격 Repository로 추가 git remote -v 2. 동기화하고 싶은 원본 Repository를 upstream이라는 이름으로 추가 git remote add upstream https://github.com/원본Repository.git 3. 추가되었는지 확인 git remote -v 4. upstream Repository로부터 최신 업데이트 가져오기 git fetch upstream 5. upstream Repository 브랜치를 로컬 브랜치로 merge git checkout {로컬 브랜치명} git merge upstream/{브랜치명} 6. Remote Repository에 적용 git push {원격 저장소명} {원격 브랜치명} [ 출처 ] http.. TIL/GIT 3년 전
[Git] 기본 명령어 Branch 브랜치 생성 로컬 브랜치 생성 git branch -b {로컬 브랜치명} 원격 브랜치 생성 git branch {원격 브랜치명} 브랜치 삭제 로컬 브랜치 삭제 git branch -d {로컬 브랜치명} 원격 브랜치 삭제 # 삭제 git push {원격 저장소명} --delete {원격 브랜치명} # 로컬 브랜치 삭제 후 push git branch -d {로컬 브랜치명} git push {원격 저장소명} {원격 브랜치명} 브랜치 목록 모든 branch 목록 git branch -a 로컬 branch 목록 git branch 원격 branch 목록 git branch -r 브랜치 이동 git checkout {브랜치명} 브랜치 이름 변경 git branch -m {기존 브랜치명} {변경할 브랜.. TIL/GIT 3년 전
[GIT] Git vs GitHub Git 데이터 저장소(Repository)에 소스코드를 넣어서 이용하는 것 GitHub 깃 Repository를 인터넷 상에서 제공하는 호스팅 서비스 초기 세팅 1. Git 사이트에서 설치 2. cmd에서 git --version 명령어 입력 git --version 3. use.email과 user.name 등록 git config --global user.email "깃허브 이메일 계정" git config --global user.name "깃허브 이름" 4. 등록한 정보 확인 git config --list TIL/GIT 3년 전