https://astrofloyd.wordpress.com/2015/05/05/git-pushing-to-and-pulling-from-multiple-remote-locations-remote-url-and-pushurl/
to solve the problem following can be done
https://help.github.com/articles/importing-a-git-repository-using-the-command-line/
to solve the problem following can be done
https://help.github.com/articles/importing-a-git-repository-using-the-command-line/
- backing up the whole project at a different location just in case anything goes wrong
- removing .git repository (note dot before git folder)
- rd .git/s (windows)
- type y when prompted
- cloning the remote repository as follows:
- git clone repository uri
- enter user name and password when prompted
- staging and pulling further changes like
- git add .
- git commit -m "files changed description"
- git origin master
- if getting any error then pull and after that try to push again
- do not push forcefully through -f as it will discard the changes made by the other team members and whole past efforts can be wasted
No comments:
Post a Comment