git-js icon indicating copy to clipboard operation
git-js copied to clipboard

Git clone with username and pwd does not set config params

Open gpradeepjain opened this issue 3 years ago • 0 comments

I am doing

await this.git.clone(RepoUrl, repoPath)
RepoUrl has username and pwd passed along and is an HTTPS URL. 

This step works, but doing rebase complains that

First, rewinding head to replay your work on top of it...\n\n*** Please tell me who you are.\n\nRun\n\n git config --global user.email \"[email protected]\"\n git config --global user.name \"Your Name\"\n\nto set your account's default identity.\nOmit --global to set the identity only in this repository.

Should I explicitly set the config by using addConfig.

gpradeepjain avatar Nov 04 '22 16:11 gpradeepjain