This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Reference: http://www.blackdogfoundry.com/blog/moving-repository-from-bitbucket-to-github/ | |
// See also: http://www.paulund.co.uk/change-url-of-git-repository | |
git remote rename origin bitbucket | |
git remote add origin https://github.com/mandiwise/awesome-new-repo.git | |
git push origin master | |
// check not merged branches and push | |
git push origin --tag |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
git branch -D gh-pages | |
git push origin --delete gh-pages | |
git checkout -b gh-pages | |
ember build --environment production | |
find . ! -name .git ! -name publishToGithubPages.sh ! -name dist -maxdepth 1 -exec rm -rf {} \; | |
mv dist/* . | |
rm -rf dist | |
git add --all . | |
git reset HEAD publishToGithubPages.sh |