From ac5a3c9c7f7dff78db469664144578e08e330028 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Tue, 4 Aug 2020 11:12:42 +0200 Subject: [PATCH] Use `git switch` instead of `checkout` to switch branches Signed-off-by: Knut Ahlers --- bin/git-ps | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/git-ps b/bin/git-ps index 503d511..e7c1ac6 100755 --- a/bin/git-ps +++ b/bin/git-ps @@ -16,7 +16,7 @@ done [[ -z ${jump_branch} ]] || { step "Switching to branch ${jump_branch}" - git checkout "${jump_branch}" + git switch "${jump_branch}" } step "Rebasing branch / updating submodules..."