zokugun / vscode-sync-settings

Easily synchronize your settings
MIT License
135 stars 11 forks source link

Set git username and email #59

Open IFcoltransG opened 5 months ago

IFcoltransG commented 5 months ago

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

daiyam commented 5 months ago

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.

IFcoltransG commented 4 months ago

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.