Merge pull request #942 from spacewander/ffgd

This commit is contained in:
罗泽轩 2021-10-02 13:06:40 +08:00 committed by GitHub
commit cc9b972e25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,10 +1,11 @@
#!/usr/bin/env bash
targetBranch=$1
set -euo pipefail
if [[ -z $targetBranch ]]; then
if [[ $# -eq 0 ]]; then
targetBranch=$(git rev-parse --abbrev-ref HEAD)
else
targetBranch=$1
git checkout $targetBranch
fi