Skip to content

Latest commit

 

History

History
37 lines (21 loc) · 1.08 KB

HOW_TO_REBASE.md

File metadata and controls

37 lines (21 loc) · 1.08 KB

How to rebase on top of Black

On Cercis's GitHub page, we can see (near the top of the page):

This branch is ** commits ahead of psf:main, ** commits behind psf:main.

Whenever we see "behind psf:main", we should rebase to incorporate the newest changes from Black.

Here are the steps to rebase:

1. Create a merge commit

Go to GitHub Desktop, and in "History" (hear the top left corner), choose the branch "upstream/main".

The "Behind" section shows the commits that we are behind Black. It should be non-zero. If it is zero, click the "🔄" button near the top right of the window.

And then click "Create a merge commit" button on the bottom left.

2. Resolve merge conflicts

If there are merge conflicts, GitHub Desktop will show a warning. Resolve the conflict using the tool of your choice.

3. Push changes

Then, use GitHub Desktop or your terminal to push the changes.

After pushing, you'll see that "** commits behind psf:main" is gone.