More often than not, you would end up in a scenario where you created a new branch off from the base branch, you implemented the feature and once that is done, you raise a pull request for the same. Now, the base branch can get updated while the PR is still in the code review for example and so, the PR branch is now is lagging from the base branch. The obvious thing you would do is to rebase your branch with the base branch in your local by fetching the latest from the remote and then pushing your changes back to the remote.

This process is quite cumbersome since you’ve to go back and forth from your local to remote.

GitHub recently introduced a handy “Rebase and merge” option (under the “Merge pull request” button) using which you can rebase your feature branch with the base branch, skipping the terminal part entirely.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners