@@ -11,7 +11,7 @@ static const char * const builtin_remote_usage[] = {
1111 N_ ("git remote [-v | --verbose]" ),
1212 N_ ("git remote add [-t <branch>] [-m <master>] [-f] [--tags|--no-tags] [--mirror=<fetch|push>] <name> <url>" ),
1313 N_ ("git remote rename <old> <new>" ),
14- N_ ("git remote rm <name>" ),
14+ N_ ("git remote remove <name>" ),
1515 N_ ("git remote set-head <name> (-a | -d | <branch>)" ),
1616 N_ ("git remote [-v | --verbose] show [-n] <name>" ),
1717 N_ ("git remote prune [-n | --dry-run] <name>" ),
@@ -34,7 +34,7 @@ static const char * const builtin_remote_rename_usage[] = {
3434};
3535
3636static const char * const builtin_remote_rm_usage [] = {
37- N_ ("git remote rm <name>" ),
37+ N_ ("git remote remove <name>" ),
3838 NULL
3939};
4040
@@ -1580,7 +1580,7 @@ int cmd_remote(int argc, const char **argv, const char *prefix)
15801580 result = add (argc , argv );
15811581 else if (!strcmp (argv [0 ], "rename" ))
15821582 result = mv (argc , argv );
1583- else if (!strcmp (argv [0 ], "rm" ))
1583+ else if (!strcmp (argv [0 ], "rm" ) || ! strcmp ( argv [ 0 ], "remove" ) )
15841584 result = rm (argc , argv );
15851585 else if (!strcmp (argv [0 ], "set-head" ))
15861586 result = set_head (argc , argv );
0 commit comments