nginx@lemmy.world to Lemmy Shitpost@lemmy.world · 2 days agoYeahlemmy.worldimagemessage-square79fedilinkarrow-up1641arrow-down120
arrow-up1621arrow-down1imageYeahlemmy.worldnginx@lemmy.world to Lemmy Shitpost@lemmy.world · 2 days agomessage-square79fedilink
minus-squarejustme@lemmy.dbzer0.comlinkfedilinkarrow-up5·1 day agoYou don’t need it on a server even. For simple versioning just use a local git repo without any bells and stuff
minus-squaretrxxruraxvr@lemmy.worldlinkfedilinkarrow-up2·16 hours agoTrue, I used the remote to access the code from other machines and/or as a remote backup. If you don’t need that, there’s no need for a server.
minus-square404@lemmy.ziplinkfedilinkEnglisharrow-up7·1 day agoOne of the most useful features is rolling back from origin when you’ve borked your local repo (not that I ever have…)
minus-squarejustme@lemmy.dbzer0.comlinkfedilinkarrow-up1·1 day agoI’m not that accustomed with it myself, so my question: how can you bork your local repo so you can’t roll back? Did you tinker in the .git folder? xD
minus-square404@lemmy.ziplinkfedilinkEnglisharrow-up1·31 minutes agoThere are many ways. Like the other user said, fucking up a merge/rebase then fucking up the merge abort. Or (one of my personal favorites) accidentally typing git reset --hard HEAD~11 instead of HEAD~1
minus-squaretrxxruraxvr@lemmy.worldlinkfedilinkarrow-up3·16 hours agoI’ve had colleagues who’d panic when they had merge conflicts, then fuck something up, remove the whole dir and create a new clone. If you’re competent I don’t think it should be necessary.
You don’t need it on a server even. For simple versioning just use a local git repo without any bells and stuff
True, I used the remote to access the code from other machines and/or as a remote backup. If you don’t need that, there’s no need for a server.
One of the most useful features is rolling back from origin when you’ve borked your local repo (not that I ever have…)
I’m not that accustomed with it myself, so my question: how can you bork your local repo so you can’t roll back? Did you tinker in the .git folder? xD
There are many ways. Like the other user said, fucking up a merge/rebase then fucking up the merge abort.
Or (one of my personal favorites) accidentally typing
git reset --hard HEAD~11
instead ofHEAD~1
I’ve had colleagues who’d panic when they had merge conflicts, then fuck something up, remove the whole dir and create a new clone. If you’re competent I don’t think it should be necessary.