Skip to main content
85 events
when toggle format what by license comment
Mar 6 at 16:09 comment added A.Casanova Just git restore --staged .
Aug 17, 2023 at 20:15 answer added Owen timeline score: 5
Mar 24, 2023 at 18:29 comment added Aadam These many answers, yet with contradictions and complex, just for such a simple thing. That is awful
Sep 6, 2022 at 6:54 review Suggested edits
Sep 7, 2022 at 10:13
Jul 25, 2022 at 2:07 history edited Mateen Ulhaq CC BY-SA 4.0
Grammar. (Missing "that".)
Jul 18, 2022 at 18:43 history edited John Smith CC BY-SA 4.0
deleted 1 character in body
Jul 13, 2022 at 0:21 comment added NeilG @jasonleonhard, that's not a bad link from Github but the OP's scenario is not in there!
Jul 5, 2022 at 0:09 history edited Mateen Ulhaq CC BY-SA 4.0
Shorten.; edited tags
Feb 22, 2022 at 16:08 comment added Sunwoo Yang For people working with large repos, you can also just cancel the git adding process and it'll revert back automatically.
Nov 29, 2021 at 7:13 history edited ashleedawg
edited tags
Sep 20, 2021 at 9:10 answer added Gerard de Visser timeline score: 10
Sep 18, 2021 at 20:54 answer added Supratim Roy timeline score: 9
Jan 30, 2021 at 22:26 comment added Dennis git rm --cached <file> unstages and untracks (marked for removal on next commit) a given file, while git reset HEAD <file> just unstages the file
Jan 26, 2021 at 12:23 history edited Braiam
edited tags
Oct 19, 2020 at 2:15 answer added Rahmat Oktrifianto timeline score: 8
Sep 11, 2020 at 17:46 answer added akhtarvahid timeline score: 67
Aug 25, 2020 at 13:35 answer added Sam Macharia timeline score: 16
Jun 25, 2020 at 6:23 answer added prosoitos timeline score: 81
Mar 23, 2020 at 9:04 comment added Uğur Gümüşhan if readers like to use GUI, you can right-click a file and click reset, or unstage
Nov 3, 2019 at 13:03 history edited Peter Mortensen CC BY-SA 4.0
Active reading [<https://en.wikipedia.org/wiki/Git>].
Jul 30, 2019 at 1:21 history notice added Bhargav Rao Needs detailed answers
Jun 10, 2019 at 10:04 history edited Zoe - Save the data dump CC BY-SA 4.0
active reading, removed incorrect use of notes (let a mod add it as an actual post note instead of a part of the question)
Jan 29, 2019 at 10:10 answer added user10841478 timeline score: 7
May 15, 2018 at 8:03 history edited Jonathan Leffler CC BY-SA 4.0
Discourage any more answers
May 7, 2018 at 12:23 comment added Nesha Zoric I always make this work by running git reset <file_name>. For more info be sure to take a look at this article.
Feb 22, 2018 at 14:45 history edited Dariusz Woźniak
Add tag
Dec 21, 2017 at 7:13 history edited itzmebibin CC BY-SA 3.0
added 7 characters in body
Oct 28, 2017 at 6:03 answer added Hasib Kamal Chowdhury timeline score: 25
Oct 26, 2017 at 18:15 answer added Joseph Mathew timeline score: 16
Jun 28, 2017 at 10:43 answer added Alireza timeline score: 185
Jun 27, 2017 at 13:58 answer added Mohideen bin Mohammed timeline score: 18
Jun 15, 2017 at 15:29 comment added Sazzad Hissain Khan Before you post a new answer, consider there are already 25+ answers for this question. Make sure that your answer contributes what is not among existing answers
May 26, 2017 at 8:32 answer added Marcin Szymczak timeline score: 9
Feb 3, 2017 at 21:13 comment added jasonleonhard This is a great resource straight from Github: How to undo (almost) anything with Git
Nov 17, 2016 at 12:49 comment added Hamzahfrq If you use Eclipse, it is as simple as unchecking the files in the commit dialogue box
Oct 4, 2016 at 11:02 answer added Vidura Mudalige timeline score: 28
Oct 2, 2016 at 15:54 answer added Anirudh Sood timeline score: 18
Jul 22, 2016 at 15:10 history edited Steve Chambers CC BY-SA 3.0
Made title into a question in a consistent format with other top questions
Jul 11, 2016 at 18:40 answer added Rahul Sinha timeline score: 82
Dec 8, 2015 at 9:58 answer added miva2 timeline score: 11
Nov 5, 2015 at 14:56 history edited Arslan Ali CC BY-SA 3.0
Fixed grammar
Oct 23, 2015 at 20:13 history edited oz10 CC BY-SA 3.0
Little less wordy, removing gratuitous "that"
Oct 22, 2015 at 23:19 history edited Mark Amery CC BY-SA 3.0
This seems like a good compromise between Arslan's edits, which you objected to, and your original wording. This way is more correct but still doesn't use any terminology that would be unfamiliar to a Git newbie. Also tweaked the code snippet just to make it more blatant the third word is a filename
Oct 22, 2015 at 13:03 answer added Jonathan timeline score: 17
Jun 24, 2015 at 10:14 history edited Nick Volynkin
edited tags
Mar 24, 2015 at 16:32 history edited oz10 CC BY-SA 3.0
Reverting bad edit. Using the official git terminology is _not_ helpful to new git users.
S Mar 24, 2015 at 14:52 history suggested Arslan Ali CC BY-SA 3.0
The way information is being asked in question is wrong, and may mis-lead a newbie.
Mar 24, 2015 at 14:15 review Suggested edits
S Mar 24, 2015 at 14:52
Mar 23, 2015 at 15:42 history edited oz10 CC BY-SA 3.0
Reverting two bad edits back to my original wording. The original wording is more helpful to git newbies than using the appropriate git terminology.
S Mar 21, 2015 at 19:23 history edited tvanfosson CC BY-SA 3.0
Corrected a flaw in the question
S Mar 21, 2015 at 19:23 history suggested Arslan Ali CC BY-SA 3.0
Corrected a flaw in the question
Mar 21, 2015 at 18:34 review Suggested edits
S Mar 21, 2015 at 19:23
Oct 29, 2014 at 16:32 review Suggested edits
Oct 29, 2014 at 17:19
Apr 26, 2014 at 12:09 comment added Daniel Alder I made a little summery which shows all ways to unstage a file: stackoverflow.com/questions/6919121/…
Jan 16, 2014 at 19:54 answer added Michael_Scharf timeline score: 105
Aug 27, 2013 at 21:15 answer added boulder_ruby timeline score: 30
Jul 26, 2013 at 2:04 comment added user456814 Starting with Git v1.8.4, all the answers below that use HEAD or head can now use @ in place of HEAD instead. See this answer (last section) to learn why you can do that.
Mar 29, 2013 at 11:14 answer added sjas timeline score: 126
Mar 9, 2013 at 11:14 history edited Peter Mortensen CC BY-SA 3.0
Copy edited.
Jan 31, 2013 at 16:20 history protected oz10
Jan 31, 2013 at 15:43 answer added Jacob Waller timeline score: 16
Jul 26, 2012 at 7:50 answer added Zorayr timeline score: 31
Apr 18, 2012 at 12:53 answer added Alex North-Keys timeline score: 55
Jan 23, 2012 at 16:57 answer added powlo timeline score: 45
Nov 17, 2011 at 18:39 history edited random CC BY-SA 3.0
this world is crumbling (cut the newbie)
Oct 12, 2011 at 1:12 answer added Khaja Minhajuddin timeline score: 106
Sep 24, 2011 at 23:34 answer added Ryan Lundy timeline score: 47
Aug 10, 2011 at 16:38 history edited skaffman
edited tags
Aug 10, 2011 at 12:53 history edited Vinicius Kamakura
edited tags
Jul 27, 2011 at 13:00 history edited takeshin CC BY-SA 3.0
formatting
May 18, 2011 at 18:05 answer added leonbloy timeline score: 222
Oct 21, 2010 at 12:37 history edited Frank Shearar
edited tags
Oct 1, 2010 at 14:54 answer added electblake timeline score: 105
Sep 10, 2010 at 20:28 answer added takeshin timeline score: 312
May 19, 2010 at 3:49 answer added Donovan timeline score: 29
Mar 5, 2010 at 16:08 history edited oz10
Adding dvcs tag
Dec 9, 2009 at 21:19 answer added braitsch timeline score: 117
Nov 19, 2009 at 16:39 answer added Ana Betts timeline score: 76
Nov 19, 2009 at 16:38 answer added Kokotte23 timeline score: 43
Jun 22, 2009 at 11:58 answer added Ran timeline score: 39
Mar 25, 2009 at 16:20 answer added Rhubarb timeline score: 2473
Dec 8, 2008 at 0:12 vote accept oz10
Dec 7, 2008 at 23:22 answer added Paul Beckingham timeline score: 631
Dec 7, 2008 at 22:30 answer added genehack timeline score: 13565
Dec 7, 2008 at 21:57 history asked oz10 CC BY-SA 2.5