Home > Net >  Used vs. git friends come in please, how to set up only allows a user to sign out of the same file?
Used vs. git friends come in please, how to set up only allows a user to sign out of the same file?

Time:10-06

The effect of vss2005 example:
User A sign out of the file:

User want to modify the file B:



-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Application scenarios:
Documents: the web.config
Users A checkout, B also want to change, then prompt: has been checked out, other users can't check out (can modify the local, can't submit, similar vss2005 modify the file read-only property principle)
Objective: to avoid multiple users to modify the same file at the same time, lead to late to deal with conflict, the combined code,

Tested with two different git account, you can sign out the same file at the same time,
Is there a way to set only allow a user to sign out?

CodePudding user response:

TFS people check out - ban people checkout - hoping to find your answer - CSDN blog
https://blog.csdn.net/lilinoscar/article/details/53068637

TFS can set

CodePudding user response:

Git can't do that, did not sign out of this feature, in fact TFS checkout exclusive very affect team
Because when the git commit operation you do is just to this shop operation, need to push/pull and only when the remote server to communicate
More than one person the same file can be solved with merge capabilities

CodePudding user response:

Git is a distributed principle, any one machine can be finally managed area, if you want that the central integrated management, the choice of the TSVC

CodePudding user response:

refer to the second floor stherix response:
checkout exclusive very impact team, more than one person the same file can use merge capabilities to solve


At the same time, however, many individuals to modify a file, if they change is the same, the purpose of optimizing code, for example, in the end effects that change, too, this is not repeated work?
, of course, we can communicate in advance, who is in charge of what files speaking, from the start to avoid change at the same time,

CodePudding user response:

reference Buddha is a supreme commander reply: 3/f
git is a distributed principle, any one machine can be finally managed area, if you want that the central integrated management, the choice of the TSVC


TFS people check out - ban people checkout - hoping to find your answer - CSDN blog
https://blog.csdn.net/lilinoscar/article/details/53068637

Teams are using vss2005 before, now want to use git, check the link, can set the location of the workspace of TFS is local or server, set to the latter, to prohibit the people checked out at the same time,
  •  Tags:  
  • C#
  • Related