Skip to content

Latest commit

 

History

History
23 lines (22 loc) · 436 Bytes

change_repo_url.md

File metadata and controls

23 lines (22 loc) · 436 Bytes

Change codecommit Repository URL

  1. Copy url from the codecommit
  2. Delete remote url
git remote set-url --delete codecommit {old_URL}

you may get the following error but ignore it.

fatal: Will not delete all non-push URLs
  1. Add new remote url
git remote set-url --add codecommit {new_URL}
  1. Check the URL
git remote -v
  1. Repeat the setp 2
git remote set-url --delete codecommit {old_URL}