浏览代码

Saving changes before switching to branch integrating-indoor-map

cdmoss 2 年之前
父节点
当前提交
f509ac320f
共有 1 个文件被更改,包括 1 次插入0 次删除
  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...";