Same issue was with me and resolved it by adding default name and email Repository Settings.
As Doron suggested -
If you are using sourcetree: Repository -> Repository Settings --> Advanced --> uncheck "Use global user settings" box.
Add default name and email address.