Horje
git delete last commit Code Example
undo commit
# KEEP CHANGES
git reset --soft HEAD~1

# REMOVE CHANGES
git reset --hard HEAD~1
git undo commit
# Uncommit the changes
git reset --soft HEAD~1

# Completely delete the changes
git reset --hard HEAD~1
git cancel last commit
git reset --soft HEAD~1
undo last commit
#this  will preserve changes done to your files
git reset --soft HEAD~1

#this will get rid of the commit and the changes done to the files
$ git reset --hard HEAD~1
 
git delete last commit
git reset --hard <sha1-commit-id>
git delete last commit
git push origin HEAD --force




Shell

Related
git delete commit 4785cd1e041 Code Example git delete commit 4785cd1e041 Code Example
Deploy to AWS Terraform and Gitlab Code Example Deploy to AWS Terraform and Gitlab Code Example
linux crée utilisateur sudo Code Example linux crée utilisateur sudo Code Example
Perl search if variable contains word Code Example Perl search if variable contains word Code Example
ubuntu install filebeat Code Example ubuntu install filebeat Code Example

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