LinearArray@programming.dev to Programmer Humor@programming.devEnglish · 10 months agoHey, I'm new to GitHub!programming.devimagemessage-square315fedilinkarrow-up11.25Karrow-down120
arrow-up11.23Karrow-down1imageHey, I'm new to GitHub!programming.devLinearArray@programming.dev to Programmer Humor@programming.devEnglish · 10 months agomessage-square315fedilink
minus-squaresubtext@lemmy.worldlinkfedilinkarrow-up2·10 months agoCan you explain what this does? I’m thinking something along the lines of reverting all commits except the very first one?
minus-squareEkkylinkfedilinkarrow-up3·10 months 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.
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.