vscode-sync-settings icon indicating copy to clipboard operation
vscode-sync-settings copied to clipboard

Set git username and email

Open IFcoltransG opened this issue 10 months ago • 2 comments

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).

IFcoltransG avatar Apr 19 '24 03:04 IFcoltransG

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.

daiyam avatar Apr 19 '24 07:04 daiyam

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.

IFcoltransG avatar Apr 26 '24 23:04 IFcoltransG