Thread (4 messages) flat view 4 messages, 3 authors, 2016-06-15

Re: git undo # last command

From: Fredrik Gustafsson <hidden>
Date: 2016-06-15 22:58:26

On Fri, Aug 16, 2013 at 04:21:59PM +0200, Saša Tomić wrote:
git commit ==> git reset --soft HEAD^
The commit does still exists, you can find it in the reflog. This is
important if you for example commits a huge file and wants to remove it.
That commit needs to be gc:ed too, and this is dangerous...

It's a not common, but often asked, question on #git@freenode . And for
many it's hard to understand why a git rm doesn't shrink their repo.

Also consider that many git commands relies on eachother. For example
the submodule scripts uses git checkout, clone, etc.
-- 
Med vänliga hälsningar
Fredrik Gustafsson

tel: 0733-608274
e-post: iveqy@iveqy.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help