Git Config
January 14, 2024
Git repo specific username, email and ssh private key config #
In some cases, it might be needed to have specific username and email for a
particular repo, so as the ssh privatekey. This can be configured by editing
the config
file under .git
directory. Here is an example of .git/config
file.
[core]
...
sshCommand = ssh -i /path_to_ssh_private_key
...
[user]
name = user_name_used_to_commit
email = user_email_for_commit