summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--changelogs/no-rm-rf-gitlab-basics.yml5
-rw-r--r--doc/gitlab-basics/command-line-commands.md2
2 files changed, 6 insertions, 1 deletions
diff --git a/changelogs/no-rm-rf-gitlab-basics.yml b/changelogs/no-rm-rf-gitlab-basics.yml
new file mode 100644
index 00000000000..d5aa1091b45
--- /dev/null
+++ b/changelogs/no-rm-rf-gitlab-basics.yml
@@ -0,0 +1,5 @@
+---
+ title: Do not use '-f' with 'rm' in gitlab-basics docs
+ merge_request: 18027
+ author: Elias Werberich
+ type: changed
diff --git a/doc/gitlab-basics/command-line-commands.md b/doc/gitlab-basics/command-line-commands.md
index 2a531193adf..c9766040234 100644
--- a/doc/gitlab-basics/command-line-commands.md
+++ b/doc/gitlab-basics/command-line-commands.md
@@ -71,7 +71,7 @@ rm NAME-OF-FILE
### Remove a directory and all of its contents
```
-rm -rf NAME-OF-DIRECTORY
+rm -r NAME-OF-DIRECTORY
```
### View history in the command line