Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

usman.raza's avatar

Laravel forge updating bitbucket branch not updating the code on server

I have deployed my website on laravel forge linux server. Previously On dev server, i have deploy the "Mailchimp" branch. now i have change that branch to "Dev". but server is not updating the code. Server still running the "Mailchimp" branch code. which i delete in new "Dev" branch

0 likes
9 replies
alqahtani's avatar

you can use Commands tab to checkout the Dev branch:

git fetch
git switch Dev

Also, make sure that you change the Deploy Script and Deployment Branch on "App" tab to match your branch "Dev"

usman.raza's avatar

@alqahtani when i run git checkout Dev following error comes error: pathspec 'Dev' did not match any file(s) known to git.

usman.raza's avatar

@alqahtani when i run git branch -a. it is not showing all remote branches. it only shows 1 remote branch

alqahtani's avatar

@usman.raza did you do git fetch first ?

is your new branch pushed from local to the remote repo?

git push origin Dev

usman.raza's avatar

same result. only 1 remote branch on forge server

Please or to participate in this conversation.