microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.01k stars 29.2k forks source link

Not able to push code in github #211375

Closed kushagras652 closed 5 months ago

kushagras652 commented 6 months ago

Type: Bug

I have been trying to push mycode on github but its showing access denied to nidhish srivastava but the thing is i am using account kushagras652 in vscode as well as github.I was using nidhish srivastava account before to push code in nidhish srivastava github.Now i have changed account setting to kushagars652 but its still showing error : remote: Permission to kushagras652/Chat-App.git denied to nidhish-srivastava. fatal: unable to access 'https://github.com/kushagras652/Chat-App.git/': The requested URL returned error: 403

VS Code version: Code 1.88.1 (e170252f762678dec6ca2cc69aba1570769a5d39, 2024-04-10T17:41:02.734Z) OS version: Windows_NT x64 10.0.22621 Modes:

System Info |Item|Value| |---|---| |CPUs|AMD Ryzen 7 5700U with Radeon Graphics (16 x 1797)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|7.33GB (1.41GB free)| |Process Argv|C:\\Users\\HP\\OneDrive\\Desktop\\react\\Gym --crash-reporter-id 0b9b6f15-9933-418b-8e37-cf1a177b600b| |Screen Reader|no| |VM|0%|
Extensions (33) Extension|Author (truncated)|Version ---|---|--- better-comments|aar|3.0.2 vscode-tailwindcss|bra|0.10.5 docs-markdown|doc|1.0.7 docs-preview|doc|1.0.5 es7-react-js-snippets|dsz|4.4.3 prettier-vscode|esb|10.4.0 auto-rename-tag|for|0.1.10 code-runner|for|0.12.2 live-sass|gle|6.1.2 go|gol|0.41.4 mongodb-vscode|mon|1.6.0 debugpy|ms-|2024.4.0 python|ms-|2024.4.1 vscode-pylance|ms-|2024.4.1 remote-wsl|ms-|0.88.0 cpptools|ms-|1.19.9 material-icon-theme|PKi|5.1.0 vscode-css-peek|pra|4.4.1 prisma|Pri|5.13.1 vscode-thunder-client|ran|2.21.15 reactree|Rea|1.0.8 java|red|1.30.0 LiveServer|rit|5.7.9 intellicode-api-usage-examples|Vis|0.2.8 vscodeintellicode|Vis|1.3.1 vscode-java-debug|vsc|0.57.0 vscode-java-dependency|vsc|0.23.6 vscode-java-pack|vsc|0.26.0 vscode-java-test|vsc|0.41.1 vscode-maven|vsc|0.44.0 vscode-import-cost|wix|3.3.0 JavaScriptSnippets|xab|1.8.0 pretty-ts-errors|Yoa|0.5.4 (1 theme extensions excluded)
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vswsl492:30256859 vscorecescf:30445987 vscod805cf:30301675 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 2i9eh265:30646982 962ge761:30959799 pythongtdpath:30769146 welcomedialogc:30910334 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 2e7ec940:31000449 pythontbext0:30879054 accentitlementsc:30995553 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 d34g3935:30971562 fegfb526:30981948 bg6jg535:30979843 ccp1r6:30993540 dsvsc020:30976470 pythonait:31006305 gee8j676:31009558 dsvsc021:30996838 9c06g630:31013171 pythoncenvpt:31022790 ```
IllusionMH commented 6 months ago

/needsMoreInfo

Does it work if you do that manually from CLI? What are remotes in repo you are using?

Probably you need to change repo config

vscodenpa commented 6 months ago

Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.

Happy Coding!

kushagras652 commented 6 months ago

It doesn't work cli. My remote is : origin https://github.com/kushagras652/Chat-App.git (fetch) origin https://github.com/kushagras652/Chat-App.git (push) Once my friend logged into my vscode now he has logged out but this issue is arising.

remote: Permission to kushagras652/Chat-App.git denied to nidhish-srivastava. fatal: unable to access 'https://github.com/kushagras652/Chat-App.git/': The requested URL returned error: 403

lszomoru commented 5 months ago

@kushagras652, are you still able to reproduce this issue? I suggest that you try the following:

  1. Sign out from all the accounts that were signed in to VS Code
  2. Close all instances of VS Code
  3. Start VS Code and sign in with your own account
vscodenpa commented 5 months ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!