Horje
git delete local commit Code Example
git delete local commit
git reset --hard origin/<branch_name>
delete commit
git checkout master
git reset --hard e3f1e37
git push --force origin master
# Then to prove it (it won't print any diff)
git diff master..origin/master
git discard all unpushed commits
# Remove ALL commits up to commit hash.
# NB: Make sure these commits have not been pushed.

git reset --hard <commit hash number>
revert unpublished commits
git reset --hard <hash-or-ref>




Shell

Related
wp cache Code Example wp cache Code Example
how to create new branch in git Code Example how to create new branch in git Code Example
bash read file into variable Code Example bash read file into variable Code Example
how to remove a folder from git and not locally Code Example how to remove a folder from git and not locally Code Example
error: package android.support.v4.content does not exis Code Example error: package android.support.v4.content does not exis Code Example

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