@@ -11,7 +11,7 @@ static const char * const builtin_remote_usage[] = {
1111 "git remote [-v | --verbose]" ,
1212 "git remote add [-t <branch>] [-m <master>] [-f] [--tags|--no-tags] [--mirror=<fetch|push>] <name> <url>" ,
1313 "git remote rename <old> <new>" ,
14- "git remote rm <name>" ,
14+ "git remote remove <name>" ,
1515 "git remote set-head <name> (-a | -d | <branch>)" ,
1616 "git remote [-v | --verbose] show [-n] <name>" ,
1717 "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- "git remote rm <name>" ,
37+ "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