"New" Git Comment:
Today I first met the following comment from Git (at least the first time I saw it):
Mikes-Mac$ git push Locking support detected on remote "origin". Consider enabling it with: $ git config 'lfs.https://github.com/<my_repo>.git/info/lfs.locksverify' true Everything up-to-date Mikes-Mac$
What is this Locking support ? Is this something like locking a mutex for LFS (large file storage)? If so, is it not necessary to do anything at all on Git? (In a minimal order, how else can you set the "ordering" of the history of the log? Worse, can I have a binary file corrupted by simultaneous writing?)
My actions
Recently, I did not do anything different in this repository and did not do anything different with this repository compared to the others that I installed with LFS.
Therefore, I suppose this is a new comment provided to the βworldβ to inform us of new features.
No obvious documentation
However, neither Google search nor a quick search on their documentation led me to anything to explain this. So, I was left wondering:
- What is this lock?
- Is this a mutex? If so, how can my repo function without it?
- Is it limited only to LFS? How is it different from regular git file locking?
- What are the pros and cons of adding lock support for LFS?
source share