git rollback operations cheatsheet

Operation objects Git operations
Untracked files git clean -f: Remove all untracked files
Tracked but not committed files git reset –hard: Rollback the tracked files to last committed status
committed-ID git reset –hard committed-ID: Rollback the repository to the specified committed-ID status

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.