Prechádzať zdrojové kódy

Saving changes before switching to branch integrating-indoor-map

cdmoss 2 rokov pred
rodič
commit
f509ac320f
1 zmenil súbory, kde vykonal 1 pridanie a 0 odobranie
  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...";