Sometimes, I create local branches in git, and I\'d like to get a warning message when I try to dcommit from them.
How can I prevent myself from accidentally dcommit
First thing that comes in mind is using a git pre-commit hook to solve the problem. This would be easy for pure git repos:
But as discussed in Hooks for git-svn, this isn't fully working. VonC came up with an (accepted) answer where he utilizes an intermediate bare repo that acts like kind of a proxy between git ans SVN.
Maybe this could help you too.