Skip to content

Instantly share code, notes, and snippets.

@alexej-d
Created February 16, 2018 14:09
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 alexej-d/a5b1c75ac01de643d8d1082c27b324d6 to your computer and use it in GitHub Desktop.
Save alexej-d/a5b1c75ac01de643d8d1082c27b324d6 to your computer and use it in GitHub Desktop.
git init
git remote add origin git@bitbucket.org:USER/PROJECT.git
git fetch
git reset origin/master
git branch --set-upstream-to=origin/master
git reset --hard HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment