본문 바로가기

Python_Beginer/GIT

[GIT]Branch Merge - Merge the same document to another location(브랜치 병합 - 같은 문서 다른 위치 병합)

반응형
$ cd documents
$ cd git
$ git init manual-3
$ cd manual-3
$ vim work.txt
$ git add work.txt
$ git commit -m "work 1"
$ git log --all --graph --oneline
$ git branch o2
$ vim work.txt
$ git commit -am "mater work 2"
$ git log --all --graph --oneline
$ git checkout o2
$ vim work.txt
$ git commit -am "o2 work 2"
$ git log --all --graph --oneline
$ git checkout master
$ git merge o2
$ git log --all --graph --oneline
$ cat work.txt

# title
content
master content 2

# title
content
ow content 2

 

반응형