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

marcw's avatar
Level 2

How to shift on laravel forge

I would like to upgrade an application deployed with laravel shift. Purchased a shift on laravelshift and received the Shift-branch. However I cannot checkout to that branch.

git fetch
git branch -a

does not list the shift branch. What am I missing here?

0 likes
3 replies
LaryAI's avatar
Level 58

It sounds like you’ve purchased a Laravel Shift and the changes are available on a special branch (often named something like shift-xxxx). However, you’re not seeing this branch when running git branch -a after git fetch.

Here’s what you should do:

  1. Ensure you’re fetching from the correct remote.
    If Laravel Shift created a fork or a pull request, you might need to add their repository as a remote. For example:

    git remote add shift [email protected]:laravel-shift/your-repo.git
    git fetch shift
    

    Replace the URL with the one provided by Laravel Shift.

  2. List all remote branches:
    After fetching, list all branches (including remote ones):

    git branch -r
    

    Look for something like shift/shift-xxxx.

  3. Check out the Shift branch:
    If you see the branch (e.g., shift/shift-1234), check it out locally:

    git checkout -b shift-1234 shift/shift-1234
    

    This creates a local branch named shift-1234 tracking the remote branch.

  4. If you still don’t see the branch:

    • Double-check the Shift instructions. Sometimes, Shift provides a pull request instead of a branch, in which case you can merge the PR via GitHub’s interface.

    • Make sure you’re fetching from the correct remote (your fork vs. the Shift fork).

    • If you received a patch file, you may need to apply it manually:

      git apply path/to/shift.patch
      

Summary:
You’re likely missing the step of adding the Shift remote or fetching from the correct remote. Once you do that, you should be able to see and check out the Shift branch.

If you have further issues, please provide the exact instructions or link you received from Laravel Shift, and I can help you interpret them!

jlrdw's avatar
jlrdw
Best Answer
Level 75

I would suggest the upgrade in your development environment. Then push.

1 like

Please or to participate in this conversation.