Pages

Thursday, January 2, 2014

Changes to be made after you Change your Repository URL

Change repository URL


You simply need to remove the origin remote that has the incorrect reference with:
$ git remote rm origin
Then restart the add, and push, and you should be good to go.
$ git remote add origin git@github.com:nikhil/example.git 
$ git push -u origin master

Capistrano deploy fails after the repository URL changes - How to fix?


You need to run following command before you start deploying with your new URL.
cap deploy:cleanup -s keep_releases=0
Apparently you will also need to remove shared/cached-copy, because this doesn't cleaned by the capistrano call above.

No comments:

Post a Comment