유투브 좀 보고 예제 푸는중인데 이게 맞나..? 심지어 하나는 몰루겠어




1.Git의 로컬저장소를 생성한다.

2.새로운 파일 hello.txt를 만들고 로컬 저장소에 커밋한다.


D:\workspace\Github\test→notepad++로 hello.txt파일 생성 →

우클릭 gitbashhere→

gitinit →

gitaddhello.txt→

gitcommit"hello.txt" 






1.마스터(master)브랜치에서 새로운 브랜치(feature)를 만들어 브랜치(feature)로 이동 한다.

2.파일(hello.txt)수정 후 커밋 메시지("[feature]create:hello.txt")로 브랜치(feature)로 반영한다. 

3.마스터(master)브랜치로 이동 한다. 

4.마스터(master)에 브랜치(feature)병합한다. 


git branch feature→

git checkout feature→

git commit--amend메시지수정 

git checkout master→

git merge feature





1.로컬 저장소를 원격 저장소와 연결한다. 

2.로컬 저장소의 마스터 브랜치(master)에서 릴리즈 브랜치(release)를 만든다. 

3.로컬 저장소의 릴리즈 브랜치(release)를 내용을 원격 저장소에 반영한다.


git remote add origin 원격저장소 주소 →

git push origin master→

git clone 원격저장소주소 → 

git branch release




1.새로운 로컬 지장소 hello를 생성한다. 

2.브랜치(master)에 파일(hello.txt)을 만든다. 

3.커밋 메시지("create:hello.txt")로 로컬 저장소에 저장한다. 

4.새로운 브랜치(feature)를 만든다. 

5.파일(hello.txt)를 다시 수정하고 커밋 메시지("master:hello.txt")로 저장한다. 

6.새로운 브랜치(feature)로 이동 후 파일(hello.txt)수정 한다. 

7.커밋 메시지("feature:hello.txt")로 브랜치(feature)로 반영 한다. 

8.마스터(master)와 merge를 수행한다. 

9.마스터(master)에 브랜치(feature)병합한다. 

10.브랜치(feature)를 삭제한다. 


아 이건 머리아파서 손도 못댐...