LinearArray to Programmer [email protected]English • 1 year agoHey, I'm new to GitHub!programming.devimagemessage-square288fedilinkarrow-up11.24Karrow-down119starcopymore-verticalflagCreate ReportslashBlock user
arrow-up11.22Karrow-down1imageHey, I'm new to GitHub!programming.devLinearArray to Programmer [email protected]English • 1 year agomessage-square288fedilinkstarcopymore-verticalflagCreate ReportslashBlock user
minus-square@subtextlink2•1 year agoCan you explain what this does? I’m thinking something along the lines of reverting all commits except the very first one? arrow-up12arrow-down10file-textreply1starmore-verticalmailMessageflagCreate ReportslashBlock user
minus-squareEkkylinkfedilink3•1 year agoYou are correct! It sets HEAD to the first commit and then force pushes, deleting everything after HEAD. Though, it only affects the currently selected branch. arrow-up13arrow-down10file-textreply1starmore-verticalmailMessageflagCreate ReportslashBlock user
Can you explain what this does? I’m thinking something along the lines of reverting all commits except the very first one?
You are correct! It sets HEAD to the first commit and then force pushes, deleting everything after HEAD.
Though, it only affects the currently selected branch.