Stop force-pushing to gh-pages
This commit is contained in:
parent
140ccc7d4e
commit
5e5bd939be
1 changed files with 4 additions and 1 deletions
|
|
@ -15,12 +15,15 @@ if !(git remote | grep origin); then
|
||||||
git remote add origin git@github.com:orchardup/fig.git
|
git remote add origin git@github.com:orchardup/fig.git
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
git fetch origin
|
||||||
|
git reset --soft origin/gh-pages
|
||||||
|
|
||||||
echo ".git-gh-pages" > .gitignore
|
echo ".git-gh-pages" > .gitignore
|
||||||
|
|
||||||
git add -u
|
git add -u
|
||||||
git add .
|
git add .
|
||||||
|
|
||||||
git commit -m "update" || echo "didn't commit"
|
git commit -m "update" || echo "didn't commit"
|
||||||
git push -f origin master:gh-pages
|
git push origin master:gh-pages
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue