Search code examples
gitgithubgit-pushgit-clone

Git push not responding, after Formating pc


I uploaded my proects to github and then i foramted my pc. after that when i wanted to get my projects back on my pc then i did git clone after oing that i started working on my project again, once i was done i then tried to commit the changes and push the code to the github but its stuck on this gitbash screenshot and when i try to close git bash this pops up pop up screenshot and when i try to run \cmd in git bash and then i close the gitbash then also it shows this pop up screen shot pop up screenshot


Solution

  • Try providing

    git remote add origin1

    or (word other than origin) instead of git remote add origin command and then again try (Simply replace origin with origin1 in the command you've used ,keep other things in the commands same as previous)

    And then ,

    git push -u origin1 master