• Johanno@feddit.org
    link
    fedilink
    arrow-up
    3
    ·
    3 months ago

    Gradle!

    Fucking gradle. I do config stuff, rerun gradle error here, I fix the error rerun gradle: sth. Violation error.

    Ok intellij invalidate chaches and restart… Still same error.

    Fine I’ll do it again

    git add. 
    git commit -m "stuff"
    git push
    
    rm -rf repo
    git clone repo
    
    • iammike@programming.dev
      link
      fedilink
      arrow-up
      4
      ·
      3 months ago

      You can probably use something like

      git clean -xdf
      

      To get rid of all the artifacts not tracked by git, in this case it’s virtually the same as deleting the repo and re-cloning it.

      NOTE: Make sure everyhing is staged, otherwise that data is gone