3 ms·
>What would "update" actually do? git add . && git commit && git push >Isn't part three the same as "git checkout HEAD~1 -- file" ? What if the delete took
by dispose13432 10y ago
>What would "update" actually do?
git add . && git commit && git push
>Isn't part three the same as "git checkout HEAD~1 -- file" ?
What if the delete took place three commits ago?
- steveklabnik 10y agoAh okay. I can see that. Then you use HEAD~3.
- dispose13432 10y agoBut you first have to find in which commit you deleted the file.
- steveklabnik 10y agoAh ha, we're starting from different assumptions. Makes sense now, thank you!
- saghm 10y ago> What if the delete took place three commits ago? The original command he was suggesting a replacement for used `-n 1`, so it seems kind of silly to point this out to him.