stackblitz / core

Online IDE powered by Visual Studio Code ⚡️
https://stackblitz.com
MIT License
10.27k stars 898 forks source link

git is configured with the wrong email when email privacy is enabled #2505

Open FireMasterK opened 1 year ago

FireMasterK commented 1 year ago

Description of Bug

When I have "Block command line pushes that expose my email" enabled on github, pushes from stackblitz fail.

Steps to Reproduce

  1. Go to https://github.com/settings/emails and enable the necessary setting.
  2. Commit on stackblitz.
  3. Try to push that commit.
  4. See error

Expected Behavior

git config user.email uses the right email, along with the vscode extension

Screenshots/Screencast

N/A

Additional Context/Questions Similar to #1963

frog-o commented 1 year ago

I been trying to work around this bug for days(but I trying to do things on mobile Wich SB(stackblitz) just doesn't function.I got it to change my email address by put some things in package.json and run a Jake file. A lot just doesn't work in SB right now. It keeps jamming up the terminal ,you can not make extension, terminal does not allow copy and paste very well (I can some what work around with Bluetooth keyboard turning it on and off).git doesn't function even though I got around the email problem some how once I have not been able to duplicate.I going to have to recheck my read-only email again and see if I accidentally goof it up when copying. I don't know if any of this is going to help but I figured it might save someone some time.

Update I think I have a work around I put -- global in my git config command and it seemed to work do more testing tomorrow when I get up.

So work around for now seems to be put something like this in your package.conf

startCommand : "git config --global user.email your email"

And make sure you have the --global option. With out it it will show up correct. In .

Code git/config And Git config --list but still not work.