Suppose I am using a shared computer account and working on a repository with multiple branches, each branch developed by a different user on that same computer account. It would be helpful to not have to switch the user.name and user.email every time a different user uses the computer to make commits to the repository.
How do I set a different user.name and user.email for each branch?