Back to Git Course
Git Course
Rebasing
Rebasing is an alternative to merging. It rewrites commit history to make a cleaner history.
git checkout feature-branch git rebase main
Stashing Changes
If you need to switch branches but have uncommitted changes, stash them.
git stash
You can apply the stashed changes later with the below command.
git stash pop
Tagging
Git tags are used to mark specific points in history as important (e.g., a release).
git tag v1.0