git 原理
1.git基本原理

2.git提交代码到远程仓库

3.远程仓库同步到本地

git pull #等同于下面命令 git fetch git merge

3.提交代码是冲突解决
一般提交前先get pull 最新代码到本地空间,但当修改的与他人提交的代码在同一位置会产生冲突
先解决冲突在提交,原理如下:


git commit
git pull
手动解决冲突
再git commit
git push
1.git基本原理

2.git提交代码到远程仓库

3.远程仓库同步到本地

git pull #等同于下面命令 git fetch git merge

3.提交代码是冲突解决
一般提交前先get pull 最新代码到本地空间,但当修改的与他人提交的代码在同一位置会产生冲突
先解决冲突在提交,原理如下:


git commit
git pull
手动解决冲突
再git commit
git push