Linux Today: Linux News On Internet Time.

More on LinuxToday

Unstaging Files in the Open Source Software, Git

Jul 12, 2010, 20:36 (0 Talkback[s])
(Other stories by Juliet Kemp)


Re-Imagining Linux Platforms to Meet the Needs of Cloud Service Providers

"Occasionally, when using the version control system Git, you may find yourself committing a file you didn't intend to. For example, you might want to commit two files separately, with different log messages (making it easier to roll back unconnected changes separately), but accidentally use the usually helpful shortcut git commit -a and commit both at once. Happily, there is a simple solution to this:

"git reset --soft HEAD^

"This command removes the most recent commit from the git repository, while leaving the changes in the working directory intact."

Complete Story

Related Stories: