I want to avoid accidentally editing master
branch in my project. PyCharm
has a great feature to "lock" the branch.
The problem is that it's almost useless because it locks the branch only until switching to another. If I checkout another branch and then go back to master, it's unlocked.
Is it possible to do this permanently or some alternative using pure GIT
?