Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set git username and email #59

Open
IFcoltransG opened this issue Apr 19, 2024 · 2 comments
Open

Set git username and email #59

IFcoltransG opened this issue Apr 19, 2024 · 2 comments

Comments

@IFcoltransG
Copy link

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
Copy link
Member

daiyam commented Apr 19, 2024

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants