Thread (1 message) 1 message, 1 author, 2016-06-15

Re: why is git destructive by default? (i suggest it not be!)

From: Matthieu Moy <hidden>
Date: 2016-06-15 22:44:49

"David Jeske" [off-list ref] writes:
- standardize all the potentially destructive operations (after gc) on "-f /
--force" to override
Depending on the definition of "potentially destructive", most
commands are "potentially destructive".

git pull loses the point where the branch used to point when the
reflog expires.

git add loses the old content of the index.

...

And adding too many --force options removes its real value. Many
people type "rm -fr" any time they just want "rm", just because they
were annoyed by the multiple interactive confirmations of plain "rm"
(if aliased to "rm -i"). Asking people to type --force all the time
make one fingers type --force mechanically, and removes all its value.

-- 
Matthieu
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help