Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
326 views
in Technique[技术] by (71.8m points)

git - GitHub 2 People commit changes to same branch


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

To a large extent, the pull request part of the story is irrlevant; we are really just talking about merging.

If two people work on the same file, their code might merge and it might not. Git thinks in terms of lines — which actually turns out to mean a line and its immediate neighborhood. In a 20-line file, if Alice edits line 1 and Bob edits line 20, that is mergeable without a conflict. If they both edit line 1, it isn't.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...