Rebasing is simply changing the base branch for any feature branch
before rebase || after rebase of feature with main
. . ||
| . |feature || . feature (now its base is main not develop)
| | | || . .
| |/ || | |
| |develop || | |develop
| / || | /
|/ || |/
main || main
this is simple rebase example, learn more here
https://www.javatpoint.com/git-rebase#:~:text=Rebasing%20is%20a%20process%20to,a%20linear%20process%20of%20merging.
https://www.atlassian.com/git/tutorials/rewriting-history/git-rebase