Search
5:06:50
beach
Good morning everyone!
5:07:00
no-defun-allowed
Morning beach!
7:21:03
no-defun-allowed
Morning makomo and shka__
9:24:20
no-defun-allowed
Morning heisig!
11:44:24
beach
I accidentally did git add <several files> but did not commit. Is there a way to undo that?
11:45:24
makomo
beach: git reset should be used for unstaging files
11:45:41
makomo
let me see what the right incantation is
11:46:50
makomo
git reset HEAD <file> should remove the file from the index (staging area), but shouldn't alter its contents (i.e. modify the work tree)
11:46:56
makomo
backup the file however just to be sure
11:47:22
makomo
i usually use Magit from Emacs so i'm not 100% sure what the exact git commands are :-)
11:48:25
makomo
for some additional confirmation, also see https://stackoverflow.com/questions/6919121/why-are-there-two-ways-to-unstage-a-file-in-git
11:49:25
heisig
I strongly recommend Magit (https://magit.vc/).
11:51:52
beach
makomo: It worked. Thank you.
11:52:23
beach
Right now I am panicking because of my bootstrapping talk.
12:25:40
shka__
beach: you had way to many talks to be panicking