• unalivejoy@lemm.ee
    link
    fedilink
    English
    arrow-up
    42
    arrow-down
    2
    ·
    12 hours ago

    Say you don’t know how to use git without saying you don’t know how to use git.

    • bjorney@lemmy.ca
      link
      fedilink
      arrow-up
      12
      arrow-down
      1
      ·
      11 hours ago

      Git doesn’t automatically recursively add all files in the directory to the repository though - VSCode decided that should be the default behavior, while other editors (intellij) ask if you want to add newly created files to version control

      • ApexHunter@lemmy.ml
        link
        fedilink
        arrow-up
        1
        arrow-down
        1
        ·
        1 hour ago

        That’s how git works. Every file and subfolder under the repo’s root folder belongs to the repo.

    • ChaoticNeutralCzech@feddit.org
      link
      fedilink
      English
      arrow-up
      20
      arrow-down
      2
      ·
      edit-2
      3 hours ago

      That’s what happens when people stumble across that website called GitHub, get hooked and now have unrealistic expectations for the real git.

      “I just installed Git for Windows. Where is the drag-to-upload box?”

      — A statement dreamt up by the utterly deranged

      Real git involves a lot of sweat, requires you to clean up any mess you make, and communicate with any partners about their preferred techniques instead of rawdogging it and waiting for issues. The pushing and pulling will come naturally but you need to know how and when to release, and be clear about how you wish to commit. Nightly is an option but good luck getting everyone on board. People might judge you for using the word “master” but it should be alright in private.

      • 4am@lemm.ee
        link
        fedilink
        arrow-up
        5
        ·
        9 hours ago

        involves a lot of sweat, requires you to clean up any mess you make, and communicate with any partners about their preferred techniques instead of rawdogging it and waiting for issues. The pushing and pulling will come naturally but you need to know how and when to release, and be clear about how you wish to commit. People might judge you for using the word “master” but it should be alright in private.

        Don’t talk about my mom that way

    • Kaeru@slrpnk.net
      link
      fedilink
      English
      arrow-up
      7
      ·
      12 hours ago

      Alright you convinced me its time to pick up this skill. How does one best learn git? Just play around with it and break things?

      • LordPassionFruit@lemm.ee
        link
        fedilink
        arrow-up
        4
        ·
        11 hours ago

        That’s basically how I did it.

        To properly learn it using this method, create a directory that contains only text files and sub directories and treat it like a real project. Add files, delete them, play around with updating the repository. Try and go back a few updates and see how the things react. Since it’s not a real project there’s no risk of loss, but you’ll still get to see the effects of what you do.