Skip to content

Commit 4a768b7

Browse files
refactor: replace git checkout with git switch for branch/tag navigation
1 parent 20dd261 commit 4a768b7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ v1.1.1
123123
v1.1.2
124124
```
125125
126-
Then you can checkout that version with, for example `git checkout v1.0.0`, or use `git checkout master` to checkout the most recent version.
126+
Then you can checkout that version with, for example `git switch --detach v1.0.0`, or use `git switch master` to checkout the most recent version.
127127
128128
## Known limitations
129129

installer.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ if [ -d "$MM_HOME/modules/$MODULE_NAME" ] ; then
7070
echo ""
7171
if [ "$BRANCH" == "master" ]; then
7272
if check_yes "Do you want to switch to the develop branch?"; then
73-
git checkout develop
73+
git switch develop
7474
fi
7575
else
7676
if check_yes "Do you want to switch to the master branch?"; then
77-
git checkout master
77+
git switch master
7878
fi
7979
fi
8080
echo ""

0 commit comments

Comments
 (0)