git - Can't push repo after reset -


i had 3 commits ahead of origin master , read should "git reset --hard origin/master". removed repo github. problem if init git same folder reupload repo doesn't recognize file.

after git init have add remote url git repository origin, have push code. use following commands process

  • check remote url following command, know whether repository contains remote url

    git remote -v

  • if donot find url add remote url using follwing command push code work.

    git remote add [shortname] [url]

    here shortname - origin

    url - remote url

and check this link once


Comments

Popular posts from this blog

Python Kivy ListView: How to delete selected ListItemButton? -

asp.net mvc 4 - A specified Include path is not valid. The EntityType '' does not declare a navigation property with the name '' -