diff --git a/README.md b/README.md index 73f9d30..2dacb8e 100644 --- a/README.md +++ b/README.md @@ -166,7 +166,7 @@ git diff HEAD ## List all branches that are already merged into master ```sh -git checkout master && git branch --merged +git branch --merged master ``` ## Quickly switch to the previous branch diff --git a/tips.json b/tips.json index 9f26e04..d0dddd6 100644 --- a/tips.json +++ b/tips.json @@ -30,7 +30,7 @@ "tip": "git diff HEAD" }, { "title": "List all branches that are already merged into master", - "tip": "git checkout master && git branch --merged" + "tip": "git branch --merged master" }, { "title": "Quickly switch to the previous branch", "tip": "git checkout -"