2020. 3. 2. 11:02ㆍGit
원격 저장소의 내용을 로컬 저장소로 가져오기
1. File - Import - Git - Pojects form Git - Clone URL
2. Source GIT repository에서 가져오고자 하는 github project의 주소 입력 - next - next
3. import using the New Project Wizard * 이게 안되서 Import as general project 로 진행함
- 자바환경변수 에러 해결 ( https://macchiato.tistory.com/9#footnote_link_9_3 참고 )
4. General - Project
로컬 저장소와 원격 저장소를 연결하기
1. git 퍼스펙티브 - remote - 우클릭 - create remote
2. Destination Git Repository : 원격 레퍼지토리와 계정입력
3. Push Reff Specifications 에서 Advanced 눌러서 'Add All Branches Spec' 추가
4. Save and Push
로컬 작업내역을 원격 저장소에 올리기
1. 새로운 파일 / 수정 파일 commit
2. 프로젝트 - 우클릭 - Team - Push branch Master
- Push to Upstream : 모든 브랜치의 작업 내역을 푸시하는 방식
3. 계정입력
4. 원격레퍼지토리 확인
원격 저장소와 로컬 저장소의 간격 메꾸기
로컬 저장소와 원격 저잣소의 브랜치 정보를 확인
Fecth & Push
1. 원격 저장소 내용 수정 및 commit
2. 로컬 저장소 내용 수정 및 commit
3. push up stream 오류
4. git 퍼스펙티브 -우클릭 - Remote -Fetch - Add All Branches Spec
- Annotated tags fetching stratege - Never~
5. git 퍼스펙티브 -우클릭 - Merge (origin/master)
6. 충돌 제거후 Add to Index
7. 프로젝트 - Team - Commit
8. git 퍼스펙티브 - 우클릭 - Push Branch master
9. 원격저장소 확인
Pull
1. 원격 저장소 내용 변경 및 Commit
2. git 레퍼지토리 - 우클릭 - Pull
[오류] repository1Pulling 1 repository Nothing to fetch.
1) git레퍼지토리- 우클릭 - Properties
2) Configuration - Add Entry
Key: remote.origin.fetch
Value: +refs/heads/*:refs/remotes/origin/*
'Git' 카테고리의 다른 글
6. Git 명령어 (0) | 2020.03.03 |
---|---|
5. Git 고급 (0) | 2020.03.02 |
3. Eclipse + Git (0) | 2020.03.02 |
2. git + github (0) | 2020.03.01 |
1. GIT 사용 (0) | 2020.02.28 |