In SVN you can Check Out (to block others from working on the same file). Can you do this in GIT? It seems like you have to set up a second system that tells people what files are being edited by who with GIT?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Git doesn’t have a central store that you can query to check if a file is “locked”. Due to its distributed nature, a repository could be on 1,000 computers, and they’d all be equal. If you allowed all of them to lock a file, and for them to communicate this to all other repositories, all files would basically be locked all the time.
So no, you can’t do that in Git. Instead, rely on updating often and handling the odd merge conflict.
You can read about distributed version control systems on Wikipedia.