Skip to content

Instantly share code, notes, and snippets.

@aleor
Created April 29, 2018 12:26
Show Gist options
  • Save aleor/83ba4a5326e107ed932b3bf82e1057d9 to your computer and use it in GitHub Desktop.
Save aleor/83ba4a5326e107ed932b3bf82e1057d9 to your computer and use it in GitHub Desktop.
Change git remote
check current: git remote -v
cd <root directory of your local repository>
git remote set-url origin https://github.com/USERNAME/REPOSITORY.git
got remote -v
git fetch/push
*hint*: store credentials with Git for Windows: git config --global credential.helper wincred
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment