Pārlūkot izejas kodu

Saving changes before switching to branch integrating-indoor-map

cdmoss 2 gadi atpakaļ
vecāks
revīzija
f509ac320f
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  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...";