diff --git a/doc/update/4.0-to-4.1.md b/doc/update/4.0-to-4.1.md
index 368351d0c91d2fddc6317973c26fae4e755feba2..aa8a305a7ce8f2d4255d934522978a7335db2850 100644
--- a/doc/update/4.0-to-4.1.md
+++ b/doc/update/4.0-to-4.1.md
@@ -16,6 +16,8 @@
 ### 2. Update GitLab
 
 ```bash
+# Set the working directory
+cd /home/gitlab/gitlab/
 
 # Get latest code
 sudo -u gitlab -H git fetch
diff --git a/doc/update/4.1-to-4.2.md b/doc/update/4.1-to-4.2.md
index 15fea59356036d319af5cdf0438a7a5a39237f83..536f22415e229b1f215e05357145f801ad31cd2a 100644
--- a/doc/update/4.1-to-4.2.md
+++ b/doc/update/4.1-to-4.2.md
@@ -7,6 +7,10 @@
 ### 2. Update code & db
 
 ```bash
+
+#Set the working directory
+cd /home/gitlab/gitlab/
+
 # Get latest code
 sudo -u gitlab git fetch
 
diff --git a/doc/update/4.2-to-5.0.md b/doc/update/4.2-to-5.0.md
index 408e4ed3d0fc76c36cb2456aa409be996fe54bd7..60d37931ec9e3bf900d9508b481f6e442a96be72 100644
--- a/doc/update/4.2-to-5.0.md
+++ b/doc/update/4.2-to-5.0.md
@@ -19,6 +19,7 @@ sudo chsh -s /bin/bash git
 __2. git clone gitlab-shell__
 
 ```
+cd /home/git/
 sudo -u git -H git clone https://github.com/gitlabhq/gitlab-shell.git /home/git/gitlab-shell
 ```