Skip to main content
9 events
when toggle format what by license comment
Nov 19, 2020 at 17:02 comment added prosoitos Since Git v2.23 the message has changed yet again. It now says git restore --staged <file>. See my answer below for an update.
Nov 3, 2019 at 13:08 history edited Peter Mortensen CC BY-SA 4.0
Active reading [<https://en.wikipedia.org/wiki/Git>].
Jul 28, 2019 at 20:13 history rollback Jonathan Leffler
Rollback to Revision 2
Jul 24, 2019 at 6:56 history edited bluish CC BY-SA 4.0
deleted 17 characters in body
Apr 23, 2018 at 19:16 comment added SilverWolf My git version 2.14.3 says git reset HEAD to unstage.
Feb 24, 2018 at 0:25 comment added Jelle De Loecker Great! The git reset HEAD <file> one is the only one that will work in case you want to unstage a file delete
Nov 9, 2013 at 3:48 history edited Paul Beckingham CC BY-SA 3.0
added 128 characters in body
May 6, 2013 at 18:25 comment added leonbloy The message will be different depending on whether the added file was already being tracked (the add only saved a new version to the cache - here it will show your message). Elsewhere, if the file was not previously staged, it will display use "git rm --cached <file>..." to unstage
Dec 7, 2008 at 23:22 history answered Paul Beckingham CC BY-SA 2.5