-1

For my university, i am required to commit all my work with my university email. How can i set the commit email for my school directory and all subdirectories without changing my global git email as i need that for another projects. Thank you.

jessehouwing
  • 106,458
  • 22
  • 256
  • 341
GBoGH
  • 79
  • 3
  • 8

1 Answers1

0

You can put a .gitconfig file in the parent directory that hosts your git repos on disk and store any settings unique to that collection of repositories.

These settings can then be overwritten by the config of the actual repository itself.

You can set any settings that are unique to all the projects in that subfolder, like your name, email, signing keys etc.

enter image description here

jessehouwing
  • 106,458
  • 22
  • 256
  • 341