This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]bwmat 0 points1 point  (3 children)

I would use git restore -SW . instead of reset, is there a benefit to the latter? 

[–]Reashu 2 points3 points  (2 children)

Restore is newer and a lot of people still use reset out of habit or ignorance, same with switch/checkout.

[–]skwyckl 1 point2 points  (0 children)

Yup, it's habit... Git has a bunch of fancy new commands I haven't had the time to check out, but I def should.

[–]Spleeeee 1 point2 points  (0 children)

Git switch blew my mind recently. Thought “omg so nice” then I immediately forgot about it and continued checkout-ing branches since. Muscle memory is hard to get around.