Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
rad_gruchalski
on April 4, 2020
|
parent
|
context
|
favorite
| on:
Git commands to know just after you get the basics
git reset --hard can be pretty destructive when applied at the wrong moment. When reverting changes in selected files, my preferred way is to use git checkout selectively.
saila
on April 4, 2020
[–]
Agreed, and there's also
git restore
now, which might be a bit more intuitive.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: