【Git】コンフリクト
〇コンフリクトとは
conflict…衝突、対立
(一緒/打つ→打ち合う)
〇mergeを実行しようとしたら、「CONFLICT」が起こった!(ローカル)
PS C:\Users\itsys\Desktop\GitTest> git merge day2branch
Auto-merging test.html
CONFLICT (content): Merge conflict in test.html
Automatic merge failed; fix conflicts and then commit the result.
→コードの要らないところをけす
→add、commit、pushする
〇git pull = git fetch + git merge
git fetch…リモートリポジトリの更新をローカルリポジトリに反映
pushの反対!
複数人の開発ではpushする前にpullする!