Problem pushing code to github.

I have been facing this issue where when I try to push my code to github it keeps giving me this error message: PS C:\Users\tenzi\OneDrive\Desktop\vacation project\article-preview-component-master> git push origin main fatal: unable to access 'https://github.com/tenze21/article-preview-component.git/': Failure when receiving data from the peer I did appreciate some possible solutions to this problem and the causes 🥲.
2 Replies
Samir
Samir•9mo ago
I think you should check your remote repository is connected to your local repository first. By using this git command --> git remote -v
Tenze
Tenze•9mo ago
Yeah I have tried that command and there was connection between the my local repository and the remote one. I don't know what was the issue but I went through some youtube videos and found a solution. I had to add my username in the link 'https://[email protected]/tenze21/article-preview-component.git/'.
Want results from more Discord servers?
Add your server