Notes

move master branch from one repo as the master branch to another repo, without merging

Edit on GitHub

Git & Github
  • old repo is on Github, new repo is on Bitbucket

  • old site was built with Jekyll, new site is built with Hugo

  • create a new branch, checkout from within master

1git checkout -b jekyll
2git push -u origin jekyll

delete everything inside the master of old repo

1git checkout master
2rm -rf ./*
1git remote add bitbucket git@bitbucket.org:aamnah/tldrdevnotes.com.git
2git remote update
1git merge --allow-unrelated-histories bitbucket/master