locked
How to prevent other user to change code in file regarding GIT and Visual Studio 2013 RRS feed

  • Question

  • User264732274 posted

    suppose i my main project code is in Github and my team member clone that project in their pc and open with Visual Studio for coding purpose.i guess at same time two person can made the change in same file. just guide me can i prevent this? is there any option available in Visual Studio 2013 to prevent two user to work on same file. long time i work with VSS and this kind of provision is there.

    if this kind of provision is there in Visual Studio 2013 and GitHub as source control then please share the knowledge. thanks

    Thursday, August 20, 2015 11:08 AM

Answers

  • User37182867 posted

    Git is not a technology that will prevent that. You will have to merge changes upon check in. TFS Version Control can support this behavior, but not Git.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, August 20, 2015 2:04 PM
  • User-166373564 posted

    Hi,

    As mentioned above, When you check in files, the system commits pending changes in your workspace to the Team Foundation version control server. More information: https://msdn.microsoft.com/en-us/library/jj155785(v=vs.120).aspx 

    With regards,

    Angie

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, August 24, 2015 3:44 AM

All replies

  • User37182867 posted

    Git is not a technology that will prevent that. You will have to merge changes upon check in. TFS Version Control can support this behavior, but not Git.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, August 20, 2015 2:04 PM
  • User-166373564 posted

    Hi,

    As mentioned above, When you check in files, the system commits pending changes in your workspace to the Team Foundation version control server. More information: https://msdn.microsoft.com/en-us/library/jj155785(v=vs.120).aspx 

    With regards,

    Angie

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, August 24, 2015 3:44 AM
  • User264732274 posted

    i am not talking about TFS rather i am working with GIT.

    Monday, August 24, 2015 10:48 AM
  • User37182867 posted

    As far as I know, Git does not support what you have described as wanting to do.

    Tuesday, August 25, 2015 9:19 AM