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

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -