I maintain both the upstream and Debian version of a program in a git repo, using "upstream" and "master" branches, git-buildpackage, etc. Occasionally I forget which branch I'm on and commit upstream changes to the master branch by mistake. Is there a way to tell git that when I'm on the master branch, I should only be allowed to commit files in the debian/ subdirectory? -- Eric Cooper e c c @ c m u . e d u