Skip to content

Instantly share code, notes, and snippets.

@guildenstern70
Last active March 11, 2016 09:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guildenstern70/c29036fac0728cc80a34 to your computer and use it in GitHub Desktop.
Save guildenstern70/c29036fac0728cc80a34 to your computer and use it in GitHub Desktop.
Shell Script to change GIT repository
#!/usr/bin/env bash
git remote -v
git remote rm origin
git remote add origin https://[git repo]
git push -u origin master
git remote -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment