Timeline for How do I undo 'git add' before commit?
Current License: CC BY-SA 4.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 28, 2018 at 18:11 | history | edited | Jonathan Leffler | CC BY-SA 4.0 |
Fix trivial typos
|
Sep 24, 2018 at 5:52 | history | edited | Hasib Kamal Chowdhury | CC BY-SA 4.0 |
added 163 characters in body
|
Sep 22, 2018 at 8:08 | history | edited | Hasib Kamal Chowdhury | CC BY-SA 4.0 |
added 4 characters in body
|
Sep 12, 2018 at 10:16 | comment | added | Imam Bux | reset = remove the file from stage however changes will still be there. checkout = gets the updated file from the repository and will overrides the current file | |
S Apr 24, 2018 at 10:43 | history | rollback | Hasib Kamal Chowdhury |
Rollback to Revision 3 - Edit approval overridden by post owner or moderator
|
|
Apr 24, 2018 at 6:02 | history | suggested | Sahil Chhabra | CC BY-SA 3.0 |
corrected the logic
|
Apr 24, 2018 at 3:44 | review | Suggested edits | |||
S Apr 24, 2018 at 10:43 | |||||
Mar 14, 2018 at 11:38 | comment | added | Hasib Kamal Chowdhury | checkout change the codes in file and move to the last updated state. reset doesn't change the codes it just reset the header. As example, reset use for added or committed files resetting before push and checkout use for back to the last updated/committed stage before git add. | |
Mar 12, 2018 at 11:18 | comment | added | franc | reset doesn't change the file, just put it away from the stage (=index, where it was put by git add) | |
Jan 22, 2018 at 23:47 | comment | added | Trent |
Please explain the difference between git reset <file> and git checkout <file> .
|
|
Jan 2, 2018 at 0:35 | history | edited | Jonathan Leffler | CC BY-SA 3.0 |
Present the code as code — it makes the dots in the 'all' commands clearer.
|
Dec 27, 2017 at 11:39 | history | edited | Hasib Kamal Chowdhury | CC BY-SA 3.0 |
git,
|
Oct 28, 2017 at 6:03 | history | answered | Hasib Kamal Chowdhury | CC BY-SA 3.0 |