- i have create new branch from master yesterday, and its local on my pc.
- today in master gitlab have new updates
- how should i do
A. Update Your Local Master Branch:
git rebase main
error: cannot rebase: You have unstaged changes.
error: Please commit or stash them.
hey hey stash dulu
git stash # Stash your changes
git rebase main
git stash pop # Reapply your changes
git status
If there are conflicts during the rebase, Git will pause the rebase and prompt you to resolve the conflicts. You'll need to manually resolve these conflicts in your files, and then continue the rebase with:
git rebase --continue