Horje
how to go to a previous commit state Code Example
how to revert back to previous commit in git permanently
# This will destroy any local modifications.
# Don't do it if you have uncommitted work you want to keep.
git reset --hard 0d1d7fc32

# Alternatively, if there's work to keep:
git stash
git reset --hard 0d1d7fc32
git stash pop
# This saves the modifications, then reapplies that patch after resetting.
# You could get merge conflicts, if you've modified things which were
# changed since the commit you reset to.
revert commit git
git revert <commit hash>
how to go to a previous commit state
# This will detach your HEAD, that is, leave you with no branch checked out:
git checkout 0d1d7fc32




Shell

Related
checkout master with previous commit Code Example checkout master with previous commit Code Example
bash array Code Example bash array Code Example
git prune local branches Code Example git prune local branches Code Example
revert to commit git Code Example revert to commit git Code Example
To exclude directory with particluar pattern : Code Example To exclude directory with particluar pattern : Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11