Explorar el Código

Stop force-pushing to gh-pages

Aanand Prasad hace 11 años
padre
commit
5e5bd939be
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  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