Skip to content

Instantly share code, notes, and snippets.

View sgasser's full-sized avatar

Stefan Gasser sgasser

View GitHub Profile
@sgasser
sgasser / Update remote repo
Last active July 20, 2018 06:45 — forked from mandiwise/Update remote repo
Transfer repo from Bitbucket to Github
// 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
#!/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