diff --git a/doc/doxygen/src/mainpage.md b/doc/doxygen/src/mainpage.md
index f695555fcdc2b2d824be9ea606baf4cb901a5970..a4bb5562b45de8b028adb0504dd5ef95aa19c23e 100644
--- a/doc/doxygen/src/mainpage.md
+++ b/doc/doxygen/src/mainpage.md
@@ -55,8 +55,8 @@ call this the `native` port). Try it right now in your terminal window:
 
 ~~~~~~~{.sh}
 git clone git://github.com/RIOT-OS/RIOT.git # assumption: git is pre-installed
-git checkout <LATEST_RELEASE>
 cd RIOT
+git checkout <LATEST_RELEASE>
 ./dist/tools/tapsetup/tapsetup              # create virtual Ethernet
                                             # interfaces to connect multiple
                                             # RIOT instances