Create dev branch from master branch
git checkout -b devPush branch to remote origin
git push origin devMake dev your default branch (in Bitbucket)
Delete master branch (in Bitbucket and local)
git branch -d masterCreate new master branch without history and commit it
git checkout -b master <SHA from initial commit>
git merge --squash <branch>
git commit -m "your merge message"Push new master
git push origin masterSet master to your default branch (in Bitbucket)
Add Github as remote target to master branch
git remote add -t master github_origin urlPush to Github
git push github_origin mastergit checkout master
git merge --squash <feature branch>
git commit -m "your message"