Explorar o código

Stop force-pushing to gh-pages

Aanand Prasad %!s(int64=11) %!d(string=hai) anos
pai
achega
5e5bd939be
Modificáronse 1 ficheiros con 4 adicións e 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
   git remote add origin [email protected]: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