Reference : git book
> git add .
> git commit -m "first commit" // commit local storage
> git push // push source code to server
> git branch issue1 // create new branch
> git checkout issue1 // use new branch
(when issue code complete. then merge to master branch ) issue1 -> master merge
> git checkout master
> git merge issue1
> git branch issue2 origin // create new branch
> git push origin issue2 // push branch to server
checkout , another user
> git checkout -b newbranchname issue2
issue1 ( editing index.html )
master ( editing index.html )
> git checkout master
> git merge issue1
print -> # unmerged: index.html
> git status // show conflict status
in index.html
<<<<<<< HEAD:index.html
<div id='footer'>contact : [email protected]</div>
=======
<div id='footer'>
please contact us at [email protected]
</div>
>>>>>>> issue1:index.html
editing source code ( include remove >>>> and <<<< ) then source commit
> git add .
> git commit