The Computer Oracle

How to amend the last commit to un-add a file?

Become or hire the top 3% of the developers on Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Dreaming in Puzzles

--

Chapters
00:00 Question
00:22 Accepted answer (Score 121)
02:12 Answer 2 (Score 76)
02:45 Answer 3 (Score 14)
03:07 Answer 4 (Score 9)
03:27 Thank you

--

Full question
https://superuser.com/questions/229290/h...

Accepted answer links:
[Jan Hudec]: https://superuser.com/users/208928/jan-h...
[more recent answer]: https://superuser.com/a/567550/141
[Matt Connolly]: https://superuser.com/users/52119/matt-c...
[git commit --amend]: https://superuser.com/a/567550/141
[git restore]: https://stackoverflow.com/a/57066072/630...
[git commit --amend]: https://superuser.com/a/567550/141
[amend]: http://www.kernel.org/pub/software/scm/g...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#git

#avk47