Skip to content

Git command & Functions on Eclipse

Achille k edited this page Nov 13, 2018 · 2 revisions

Reverting

git checkout -- fileName.jsp //revert uncommitted changes git checkout -- . //revert many uncommited changes

git revert somepreveiouscommitid //and reverted committed git -n revert somepreveiouscommitid //and reverted is uncommitted

or

use eclipse to "replace with previous version" //revert committed changes

git reset --hard somecommitid -- somepreveiouscommitid //revert all committed after that comitted id