Skip to content

Instantly share code, notes, and snippets.

@olssonm
Created January 13, 2025 12:47
Show Gist options
  • Save olssonm/f5cd8ec7b9ab18e3ed184fe95585d34f to your computer and use it in GitHub Desktop.
Save olssonm/f5cd8ec7b9ab18e3ed184fe95585d34f to your computer and use it in GitHub Desktop.
Add branch to Laravel Forge Git-configuration
git config --add remote.origin.fetch +refs/heads/BRANCH_NAME:refs/remotes/origin/BRANCH_NAME
git fetch origin BRANCH_NAME
git checkout -b BRANCH_NAME origin/BRANCH_NAME
# Via @tylerwiegand on Laracasts.com (https://laracasts.com/discuss/channels/forge/change-a-github-branch-for-a-site-already-setup-with-forge)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment