Skip to content

Instantly share code, notes, and snippets.

@tgrrr
Created March 19, 2019 03:15
Show Gist options
  • Save tgrrr/1bacb63a79897517ec1dd825a5074b04 to your computer and use it in GitHub Desktop.
Save tgrrr/1bacb63a79897517ec1dd825a5074b04 to your computer and use it in GitHub Desktop.
Github commands to follow after changing the ownership of a repo
git checkout master
git remote -v # check what remotes are set
git remote rm origin
git remote -v # verify that the origin is removed
git remote add origin <git url>
git fetch origin
git branch -u origin/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment