Added function to auto-update remote origin url, can be manually set in config as well.
(cherry picked from commit 88e1f2e)