Local 과 Remote 저장소 연결 및 작업
cd c:\workdspace
[로컬과 원격저장소 연결]
git remote add 별칭 https://github.com/inet815/study.git
git remote -v
연결확인
===========로컬에서 작업========
git push origin --all
로컬 작업의 모든 브랜치를 push
==========리모트와 로컬의 같은 파일을 로컬에서 변경
git push origin master
로컬 작업을 리모트에 푸쉬 하면 충돌 발생
git fetch
리모트의 커밋정보를 가져옮
git merge origin/master
로컬의 마스터와 리모트의 msater를 통합
git diff
vim 수정
git commit -a -m "confict resolved GitHub"
fetch와 merge를 한번에 하는 Pull 명령어
댓글
댓글 쓰기