This is Video is going to Explain how the Rebase and Merge works
Rebase = Fastforward
Merge = Fastforward with Extra Commit.
Create 3 file in Master Branch - with respective 3 Commits
Create 2 files in feature-f1 Branch with 2 commits
Go To Main Branch: -
git merge feature-f1
Go To Main Branch
git rebase feature-f1
git checkout main -To change the main branch
git checkout feature-f1------To change to feature/f1