简体   繁体   中英

Could commit operation cover others' modification without conflict warning?

I seldom execute update operation before commit because I think once others have modified the file already, then when I commit that file the conflict warnings would occur. At least I wouldn't cover others' submission.

But is it possible that I might cover others' submission without warning message when using commit operation?

In other words, must I always execute update operation before commit to avoid covering others' submission?

You should always update, for sure. Otherwise, under normal conditions (every project is different), how can you make sure that your changes are working fine with other developer's changes? It's not a matter of only conflicts. Say, a java project. You add a class import to the class that you are working on.... but then on one of the recent revisions from other developers, that class you are importing is gone.... you will commit, no conflict whatsoever but the project is busted .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM