I have been working on a project for the past few weeks using a repository on bitbucket. Recently, I decided that I also want the repository on my github account. I have successfully set it up so that every time I push, I push to both repositories. The github repo essentially serves as an exact copy of my commits to the bitbucket repo. My problem is that I have to enter my name and username for both accounts every time I push.
I have researched the new conditional includes for using different accounts, but it seems like that only works when the repositories have different file paths, which in this case they don't.
Does anyone know of a way to setup my .git/config file so it automatically uses a specific name/email combo depending on which repository it is pushing to?