-
Notifications
You must be signed in to change notification settings - Fork 0
Home
jisoo97 edited this page Oct 28, 2019
·
18 revisions
- Git - 파일의 변동사항을 추적하고, 여러 사용자간의 파일 작업을 조율(지속적 추적이 가능함)
- Github - Git을 online service 하는 것. Git 자체의 기능 외에도 위키, 프로젝트 관리 툴 등을 제공한다. 비슷한 프로그램으로는 Gitlab, Bicbucket 등이 있음
- 결론 : 여러 사람이 프로젝트를 하는 경우에 필요하다!!
- 다운로드까지 10분
- 가입
- (개인) repository 생성
- local 저장소 생성
git init - 파일 만들기 readme.md
git status(빨간색) - commit 준비상태로 만들기
git add *
git status(초록) - commit
git commit -m "Add readme.md by Jisoo" - global 변수 설정
git config --global user.name "Jisoo Kim"
git config --global user.email jisoo97@postech.ac.kr - 다시 commit
- Origin branch 만들기
git remote add origin "____주소____" - Push
git push -u origin master
-
초대
-
(개인) repository 생성
-
local 저장소 복사
git clone ____서버 주소___(파일 확인) -
각기 다른 파일 만들기 jisoo.txt
git status(빨강)
git add *
git status(초록)
git commit -m '_____'
git push---> 서버(github) 확인
git pull---> 서로 파일 다운로드 받았는지(local repository) 확인 -
같은 파일에 작업(conflict)
- jisoo.txt에 작성
- 한 명이 먼저 push(add -> commit -> push)
- 다른 한 명이 수정 후 (add -> commit -> push(error) -> pull(conflict) -> 수정 -> add -> commit -> push)
- 위 작업 반복
- branch 생성/Merge -> 시간 되면
git branch 'develop'
git checkout develop
master로 전환 후
git merge branch