Fix the URL that your local repository uses to find its remote respository
- Copy your repo's new URL, and head to the terminal:
git remote -v # See your old URL
git remote set-url origin https://github.com/[your-name]/**[NEW-REPO-NAME].git**
git remote -v # See your new URL
Fix your virtualenv (Python)
- Edit your venv/bin/pip file at the top:
subl venv/bin/pip
#!/home/.../CHANGE_TO_NEW_NAME/venv/bin/python
- Edit your venv/bin/activate file at line ~43:
subl venv/bin/activate
Edit the path to have the new name:
VIRTUAL_ENV = "/home/.../CHANGE_TO_NEW_NAME/venv"
Note: I've recently started using virtualenvwrapper and it takes care of this issue by separating the virtualenv's dependencies from the project and its folder.