Explorar el Código

Saving changes before switching to branch integrating-indoor-map

cdmoss hace 2 años
padre
commit
f509ac320f
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      switchtobranch.sh

+ 1 - 0
switchtobranch.sh

@@ -16,6 +16,7 @@ if [ "$answer" == "Y" ] || [ "$answer" == "y" ]; then
     echo "Saving changes...";
     git add .;
     git commit -m "Saving changes before switching to branch $1";
+    git push -u origin $1;
 fi
 if [ "$answer" == "N" ] || [ "$answer" == "n" ]; then
     echo "Discarding changes...";