LinearArray@programming.dev to Programmer Humor@programming.devEnglish · 1 year agoHey, I'm new to GitHub!programming.devimagemessage-square286linkfedilinkarrow-up1885
arrow-up1885imageHey, I'm new to GitHub!programming.devLinearArray@programming.dev to Programmer Humor@programming.devEnglish · 1 year agomessage-square286linkfedilink
minus-squareEkky@sopuli.xyzlinkfedilinkEnglisharrow-up1·edit-21 year agolike this? # Let Git take a rest with some yummy awk chocolate logs with delicious nuts and seeds, and don't be pushy! git reset --hard $(git log --reverse | sed -n 1p | awk -F "[ ]" '{print $2}') && git push -f EDIT: Don’t actually run it.
minus-squaresubtext@lemmy.worldlinkfedilinkarrow-up1·1 year agoCan you explain what this does? I’m thinking something along the lines of reverting all commits except the very first one?
like this?
# Let Git take a rest with some yummy awk chocolate logs with delicious nuts and seeds, and don't be pushy! git reset --hard $(git log --reverse | sed -n 1p | awk -F "[ ]" '{print $2}') && git push -f
EDIT: Don’t actually run it.
Can you explain what this does? I’m thinking something along the lines of reverting all commits except the very first one?