✅ Issue during pushing a commit to GitHub from VS Code
Hi friends,
I'm working on a project using
VS Code
, I used VS Code
to clon that project from my Github
repository, everything is okay, after creating a Commit
(it created successfully ), but the issue is when I press Sync Changes
to push that commit to my repository I get an issue that recorded in the attached video.
Please any help to fix this issue ???? and massive thanks in advance <36 Replies
Thanks to
ChatGPT
, he helped me temporarly by this solution :
https://chat.openai.com/share/20d681bd-2749-401f-a4d3-ada761acf70fI said temp because the token as you know wil be expired in 30 days, so I need a permanent solution, and thanks in advance <3
have you use
git
before? It could be your git configuration: https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration
try running a git push
from the command line and tell us if you get an error (but only do that when you are ready to push code). "push" will attempt to push your local commits to your repoYes I did but it gaves me the same error as the error shown in the video
do you see your username and email when you run
git config --list
yeah
it gives me the correct ones
Fuuuuuuuuuuuuuuuuuck to
Visual Studio
, the main issue came from Visual Studio
because I have logged into my another Github
account and mf Visual Studio made that account as the global/default git
/Github
account, but when I logged out from it and re-logged into my repository original account the issue was fixed
Thanks