Merge branch 'js/rebase-cleanup'
[gitweb.git] / sha1-name.c
index 6069fe006b690975fbcd2cd7adf0fbc807e06389..2989e27b717abdabd6623299d7737e9a51641990 100644 (file)
@@ -801,7 +801,7 @@ static int get_oid_basic(struct repository *r, const char *str, int len,
        "because it will be ignored when you just specify 40-hex. These refs\n"
        "may be created by mistake. For example,\n"
        "\n"
-       "  git checkout -b $br $(git rev-parse ...)\n"
+       "  git switch -c $br $(git rev-parse ...)\n"
        "\n"
        "where \"$br\" is somehow empty and a 40-hex ref is created. Please\n"
        "examine these refs and maybe delete them. Turn this message off by\n"