vscode-sync-settings
vscode-sync-settings copied to clipboard
Set git username and email
My global git config does not have a username or email set in it, meaning that commits fail in new repositories unless I set those options. (So that I don't upload commits with the wrong username to a repo.) In Sync Settings (the extension itself) I am not able to edit git settings before upload (the error happens when committing, before the pre-upload hook).
I would like a setting that allows me to define a commit author, whether by specifying git's local settings directly, or a commandline flag passed to the commit itself (--author
).
It uses the git
command of your system so it will need to be able to read/write on the remote repository.
You can use .gitconfig
to customize your git.
It's unclear where I could create a .gitconfig
that isn't global to my system. If the repo is always made in a particular location then I don't know where that is.