Article 5A3B7 LXer: How to Undo Last Git Commit

LXer: How to Undo Last Git Commit

by
LXer
from LinuxQuestions.org on (#5A3B7)
Published at LXer:

Sometimes, when working with Git, you may want to undo the latest commit. A commit is a snapshot of a Git repository at a given time. Git has a reference variable called HEAD that points to the latest commit in the current working branch. To undo a commit, all you need to do is point the HEAD variable to the previous snapshot.

Read More...latest?d=yIl2AUoC8zA latest?i=djyq7WMRDzI:fY0-mn08kuQ:F7zBnMy latest?i=djyq7WMRDzI:fY0-mn08kuQ:V_sGLiP latest?d=qj6IDK7rITs latest?i=djyq7WMRDzI:fY0-mn08kuQ:gIN9vFwdjyq7WMRDzI
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments