Skip to content

Git Stuff

Update main branch with develop

git checkout main
git pull origin main
git rebase develop
git push origin main

Force update preview branch from main

git checkout preview
git fetch origin
git reset --hard origin/main
git push --force origin preview

Merge specific commit from fork into original repo

git remote add fork_remote <fork-repo-url>
git fetch fork_remote
git log fork_remote/<branch-name>
git checkout main  # or your target branch
git cherry-pick <commit-hash>
git push origin main  # or your target branch