וַיְצַ֞ו אֶת־יְהוֹשֻׁ֣עַ בִּן־נ֗וּן וַיֹּאמֶר֮ חֲזַ֣ק וֶֽאֱמָץ֒ כִּ֣י אַתָּ֗ה תָּבִיא֙ אֶת־בְּנֵ֣י יִשְׂרָאֵ֔ל אֶל־הָאָ֖רֶץ אֲשֶׁר־נִשְׁבַּ֣עְתִּי לָהֶ֑ם וְאָנֹכִ֖י אֶֽהְיֶ֥ה עִמָּֽךְ׃
I ustanowił Jehoszuę, syna Nuna, i rzekł: "Bądź silnym i wytrwałym, gdyż ty wprowadzisz synów Israela do ziemi, którą im zaprzysiągłem, a Ja będę z tobą!"
Rashi
כי אתה תבוא את העם הזה — Translate this as the Targum does: ארי אתה תעול עם עמא הדין, THOU SHALT GO WITH THIS PEOPLE. Moses, by the statement “Thou shall go with this people” (as one of them) said in effect to Joshua: The elders of the generation will be with thee: everything has to be done according to their opinion and their advice. The Holy One, blessed be He, however, said to Joshua, (v. 23) “For thou shalt bring (תביא) the children of Israel into the land which I swore unto them” — thou shalt bring them even against their will; everything depends on you alone: if necessary take a stick and beat them over the head: there can be but one leader for a generation, and not two leaders for a generation (Sanhedrin 8a).
Or HaChaim
כי אתה תבא את העם הזה, "for you will come with this people, etc." Moses did not say תביא, "you will bring this people," seeing it was G'd who would actually bring the people by destroying their opposition. All Joshua was required to do was to march at the head of the people. While it is true that our sages in Sanhedrin 8 drew our attention to the end of our portion (verse 23) where G'd tells Joshua "you shall bring the children of Israel to the land I have sworn to them," the reason that G'd used the expression תביא was to correct the impression Moses' words had left when he said תבא. According to Rabbi Yochanan Moses meant "you and the elders." G'd objected by saying that there can only be one authoritative spokesman per generation, i.e; dabbar echad ledor. To make this point, G'd said to Joshua "you will bring," instead of "you will come." Now that we have that verse we can interpret the verse in which Moses said "you will come" as a reminder that G'd would do the actual "bringing."
Haamek Davar
He is the who will go ahead of you: As the Holy One, blessed be He, will be seen with you and He will command you prior to your beginning with rulership. And in this manner, it is called "going ahead of you" - prior to your placing yourself as the leader. And for this reason, when the Holy One, blessed be He, comes to reassure Joshua later on (verse 23), He only says the second reassurance of Moshe, "and I will be with you."
Rashi
I have already commanded you to be stong and courageous. This was said in reference to actual war, as it is said: ‘Have no fear or trepidation.’ Where was he commanded this? He was so commanded in the time of Moshe, as it is said: ‘and command Yehoshua son of Nun etc.’18Devorim 31:23.
Rashi
Get yourself up. [Even though we read the word as קֻם], it is written קם [which could be read קָם]. [The explanation therefore would be as follows]: Your prayers to Me have stood up for you, and [everything] you mentioned.3Your prayers and everything you said have accomplished their purpose. I will not permit the people to be defeated. Another explanation: you stood yourself in the camp and did not go out with them,4When you sent the men to capture the city of Ai, you remained at the camp and did not lead them. and I had said, ‘Who will take them out [to war] and who will bring them [back].’5Bamidbar 27:17. ‘For you will bring the Bnei Yisroel— and I will be with you.’6Devorim 31:23. ‘For he will cross over before this people, and he will spur them on to inherit.’7Devorim 3:28. If you go before them, they will succeed, and if not, they will not succeed. Another explanation: Get yourself up, it is your fault [because of you] that this has happened to them. I did not tell you to sanctify the booty of the city.