Skip to content

Instantly share code, notes, and snippets.

@ericboehs
Created July 14, 2009 16:31
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 ericboehs/147046 to your computer and use it in GitHub Desktop.
Save ericboehs/147046 to your computer and use it in GitHub Desktop.
# Migrating from your Unfuddle git repo to GitHub
cd YOUR_GIT_REPO
git remote rm unfuddle
git remote add origin git@github.com:opubco/YOUR_REPO_NAME.git
git push origin master
# If you don't like typing git push origin master, set it up in your .git/config
echo '[remote "origin"]
url = git@github.com:opubco/YOUR_REPO_NAME.git
fetch = +refs/heads/master:refs/remotes/origin/master
' >> .git/config
# or better yet, track it when you do the git remote add
git remote add -t master origin git@github.com:opubco/YOUR_REPO_NAME.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment