LinearArray to Programmer HumorEnglish · 11 months agoHey, I'm new to GitHub!imagemessage-square316fedilinkarrow-up11.28Karrow-down121
arrow-up11.25Karrow-down1imageHey, I'm new to GitHub!LinearArray to Programmer HumorEnglish · 11 months agomessage-square316fedilink
minus-squaresubtext@lemmy.worldlinkfedilinkarrow-up2·11 months agoCan you explain what this does? I’m thinking something along the lines of reverting all commits except the very first one?
minus-squareEkky@sopuli.xyzlinkfedilinkarrow-up3·11 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.