Skip to content

Shkodenko Taras

web development and system administration of Linux

  • Drawing
  • About

Git undo last commit

March 19, 2022March 19, 2022 ~ tadmin

To undo last commit in git you can use the following command below:


$ git reset HEAD~

Posted in Git git

Published by tadmin

View all posts by tadmin

Post navigation

‹ PreviousGit show: display commit information
Next ›Git create and apply patch files

Email subscription

Enjoy weekly advices related to web development & Linux system adminstration delivered to your mailbox.

Categories

  • Apache
  • CMS
  • Docker
  • Drupal
  • Git
  • Linux
  • Magento
  • MySQL
  • Nginx
  • PHP
  • Pimcore CMS
  • Plesk
  • Server configuration
  • Symfony
  • Uncategorized
  • WordPress

Tags

.htaccess anti-malware antivirus Apache archive backup bash bind certificate CMS composer diff Drupal fail2ban git IPTables Linux lsof Magento MySQL mysqldump named nginx Node.JS Odin openssl PHP Pimcore Plesk plugin ProFTPD remote rpm Security sed server sh shell ssh ssl tar unzip wordpress wp-cli zip

Donations

You can support this project if you like what I'm writing

Recent Posts

  • Git: search commits by author
  • PHP Symfony Developer Certification on ITVDN Platform
  • Git: how to stash / unstash not commited changes
  • Docker: copy file from host to container
  • Apache 2.4 virtual host config for a WordPress CMS
  • Composer show installed packages
  • PHP ?: ternary operator the Elvis operator

Search

Proudly powered by WordPress ~ Theme: Shcom-child by Taras Shkodenko.