S
Seoffix.com
Sign In Get Pro Membership
DEV Community (dev.to) Live RSS 15 h ago · 2 views ↗ Read original article
Coding & Web Dev #git #beginners #tutorial

git reset --soft, --mixed, --hard: what each one keeps (tested)

SUMMARY FROM DEV COMMUNITY (DEV.TO)I always forgot which git reset mode deletes work. So I ran all three in a scratch repo (git 2.34.1) with the same setup: one commit one containing f.txt = "one", then a second commit that adds the line "two". For each mode I ran git reset --mode HEAD~1, then…

This is a short summary of a live headline. The full article stays on the publisher’s site, so open it there to read the whole story. Discuss it with other members below.

↗ Read original article

Related Seoffix Tools

Join the discussion. Sign in with your Seoffix account to comment.

0 comments