0% found this document useful (0 votes)
6 views1 page

Git Doc 4

The document explains three Git commands: 'git rebase' for applying commits on top of another base for cleaner history, 'git reset' for moving branch pointers and modifying history, and 'git revert' for safely undoing changes by creating a new commit. It highlights that rebasing is beneficial for maintaining a linear history but should be avoided on shared branches.

Uploaded by

Muskan Khedia
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views1 page

Git Doc 4

The document explains three Git commands: 'git rebase' for applying commits on top of another base for cleaner history, 'git reset' for moving branch pointers and modifying history, and 'git revert' for safely undoing changes by creating a new commit. It highlights that rebasing is beneficial for maintaining a linear history but should be avoided on shared branches.

Uploaded by

Muskan Khedia
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Rebasing, Reset & Revert

git rebase
Reapplies commits on top of another base commit for a cleaner history.

git reset
Moves branch pointers and can modify history.

git revert
Creates a new commit that undoes previous changes safely.

Rebasing is useful for maintaining linear history but should be avoided on shared branches.

You might also like