push - Point existing code to new location of the remote respository in GIT -


i moved remote repository (git) on server , path changed. but, mistake had committed few changes forgot push last commit. when pushing still trying @ old location.

how can start pointing same local code base new git repository can continue working without having re-clone repository , re-apply un-pushed changes?

git.exe push --progress "origin" master:master

remote: not found

fatal: repository 'http://server.com/username/repo-name.git/' not found

you use below command change link new remote

git remote set-url origin {new url.git}

you verify change by

git remote -v

the above commands assume remote repository named "origin", default nomenclature using git, can make suitable change based on local environment.

more details can found @ https://help.github.com/articles/changing-a-remote-s-url/


Comments

Popular posts from this blog

SVG stroke-linecap doesn't work for circles in Firefox? -

routes - Laravel 4 Wildcard Routing to Different Controllers -

cross browser - XSLT namespace-alias Not Working in Firefox or Chrome -