Last active
March 6, 2021 13:13
-
-
Save sfilyh/d8c1aa186b2f4f4af3f08d02d76ef445 to your computer and use it in GitHub Desktop.
git 多分支切换脚本
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| BRANCH_NAME=$1 | |
| SRC_DIR="/Users/user/poject/all_branch/${BRANCH_NAME}" | |
| echo $SRC_DIR | |
| if [ ! -d $SRC_DIR ];then | |
| git clone https://github.com/sdemo/sdemo.git $SRC_DIR | |
| fi | |
| cd $SRC_DIR | |
| git checkout $BRANCH_NAME | |
| open $SRC_DIR -a 'IntelliJ IDEA |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment