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
  • Yii2

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 shell ssh ssl tar unzip wordpress wp-cli Yii2 zip

Donations

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

Recent Posts

  • Generate .htaccess config file using tee shell command
  • Docker network declared as external could not be found
  • Error 500: Attempted to load class “Twig_Function” from the global namespace. Did you forget a “use” statement?
  • PHP Yii2 Framework Advanced Certification on ITVDN
  • Git: search commits by author
  • PHP Symfony Developer Certification on ITVDN Platform
  • Git: how to stash / unstash not commited changes

Search

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