E
E
Evgeny Glebov2015-12-08 15:56:59
git
Evgeny Glebov, 2015-12-08 15:56:59

Where in git lock?

Hello. How can I lock a file in git so that other developers cannot edit it?
Example: there is a picture that needs to be changed, but it is not specifically indicated who will do it. Two developers will start editing it at the same time, and as a result, only someone's version will have to be applied (the other's version is replaced).
In SVN and tfs it is possible to lock a file for the duration of the change. How to do it in git? If this is not the case, then why and how to act in such a situation?
Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
aol-nnov, 2015-12-08
@GLeBaTi

there's no such thing.
if you write a merge tool for your binary data, it will be :)
this is all because git, unlike svn, is a decentralized version control system. where specifically to lochit something? Vasya or Petya?

F
FoxInSox, 2015-12-08
@FoxInSox

My son, Google was invented 15 years ago, it's time to start learning how to use it:
1. query: how to lock file in git
2. second line: stackoverflow.com/questions/119444/locking-binary-...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question