I’m thinking on writing some tutorial on de-sloppifying some open-source projects, with I’m likely ending up at least starting some of them.

  • 0xDEADBEEFCAFE@programming.dev
    link
    fedilink
    English
    arrow-up
    7
    ·
    24 days ago

    A shorter example:

    git clone https://codeberg.org/yourname/yournewrepo
    cd yournewrepo
    git reset --hard abcdef1 # commit that you want to reset to
    git push --force origin
    

    Note that instead of abcdef1 in git reset you can also use the regular expression syntax. So if the commit was named Last release before unwanted changes you would say git reset --hard ':/Last release before unwanted changes'.