Browse Source

Stop force-pushing to gh-pages

Aanand Prasad 11 years ago
parent
commit
5e5bd939be
1 changed files with 4 additions and 1 deletions
  1. 4 1
      script/deploy-docs

+ 4 - 1
script/deploy-docs

@@ -15,12 +15,15 @@ if !(git remote | grep origin); then
   git remote add origin [email protected]:orchardup/fig.git
 fi
 
+git fetch origin
+git reset --soft origin/gh-pages
+
 echo ".git-gh-pages" > .gitignore
 
 git add -u
 git add .
 
 git commit -m "update" || echo "didn't commit"
-git push -f origin master:gh-pages
+git push origin master:gh-pages
 
 popd