diff --git a/colors.sh b/colors.sh
index 3336f5101955b17fc3095019148909d00a3deff4..00cf7388abd548aa752cb56154218337b1c46f38 100644
--- a/colors.sh
+++ b/colors.sh
@@ -1,10 +1,10 @@
 for i in {"red","pink","purple","deep purple","indigo","blue","light blue","cyan","teal","green","light green","lime","yellow","amber","orange","deep orange","brown","grey","blue grey"}
 do
-  git pull --rebase origin colors
-  git pull --rebase 
   echo "Setting color to: $i, ${i/ /_}, color_${i/ /_}"
   #git checkout -b color_${i/ /_}
   git checkout color_${i/ /_}
+  git pull --rebase origin colors
+  git pull --rebase 
   sed -ri "s/(primary: ').*'/\1$i'/" mkdocs.yml
   #git cherry-pick bd8e358 
   git commit -am "Setting color to: $i"