No chance, if file is not mergeable and you need to lock it, use a centralized solution instead of GIT, i.e. SVN or ClearCase.
More Related Contents:
- Support for password authentication was removed. Please use a personal access token instead
- Password authentication is temporarily disabled as part of a brownout. Please use a personal access token instead [duplicate]
- Message “Support for password authentication was removed. Please use a personal access token instead.”
- How can I automatically deploy my app after a git push ( GitHub and node.js)?
- How can I see the size of a GitHub repository before cloning it?
- GitHub Api download zip or tarball link
- After $git push -u origin main command, Git bash is not requesting any authentication literally does nothing
- Git push existing repo to a new and different remote repo server?
- .gitignore after commit [duplicate]
- Skip Git commit hooks
- How to remove a dangling commit from GitHub?
- Import existing source code to GitHub
- gpg failed to sign the data fatal: failed to write commit object [Git 2.10.0]
- Authenticate Jenkins CI for Github private repository
- Can a Git hook automatically add files to the commit?
- Why doesn’t git recognize that my file has been changed, therefore git add not working
- How to keep different content of one file in my local and github repository?
- How to commit a change with both “message” and “description” from the command line? [duplicate]
- update package.json version automatically
- GitHub – List commits by author
- git push heroku master says “Everything up-to-date”, but the app is not current
- How do I fix “remote: fatal error in commit_refs” errors trying to push with Git?
- GitHub Clone with OAuth Access Token
- Git Clone – Repository not found
- Git: How to make outer repository and embedded repository work as common/standalone repository?
- Git push error: RPC failed; result=56, HTTP code = 200 fatal: The remote end hung up unexpectedly fatal
- GitHub pages only showing ReadMe file?
- Clone only the .git directory of a git repo
- git – remote add origin vs remote set-url origin
- git clone with HTTPS or SSH remote?