LinearArray@programming.dev to Programmer Humor@programming.devEnglish · hace 9 mesesHey, I'm new to GitHub!programming.devimagemessage-square318fedilinkarrow-up11.27Karrow-down121
arrow-up11.25Karrow-down1imageHey, I'm new to GitHub!programming.devLinearArray@programming.dev to Programmer Humor@programming.devEnglish · hace 9 mesesmessage-square318fedilink
minus-squaresubtext@lemmy.worldlinkfedilinkarrow-up2·hace 9 mesesCan 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·hace 9 mesesYou 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.