Skip to content

Commit 30972db

Browse files
committed
stash changes before checkout new branches, in case there are some unstaged/uncommited changes
1 parent ddc9592 commit 30972db

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

gitFunctions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,5 @@ def pushbranch(branchname):
9090

9191
@staticmethod
9292
def checkout(branchname):
93+
shell.execute("git stash") # in case there are changes, stash them before checkout new branch
9394
shell.execute("git checkout " + branchname)

0 commit comments

Comments
 (0)