Personally, to keep my documents like Inkscape files or LibreOffice documents separate from my code, I add a directory under my home directory called Development. There, I can do git clones to my heart’s content

What do you all do?

  • vinnymac@lemmy.world
    link
    fedilink
    arrow-up
    1
    arrow-down
    1
    ·
    16 minutes ago

    ~/sites

    I have always used it. I liked how it was easy to find in the home directory amongst other folders. Then under that I have a folder for every organization, including myself, and repositories live in those folders.

  • nzeayn@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    2 hours ago

    /mnt/external_ssd_1/git_repos/reponame

    i trust my workstations os to still be working in the morning as much as i trust the chances i even published the stupid branch after making it.

  • aleats@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    8
    arrow-down
    1
    ·
    edit-2
    3 hours ago

    ~/src/

    Simple, effective, doesn’t make my home folder any more of a mess than I already left it as.

  • Dr. Bluefall@toast.ooo
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    1
    ·
    edit-2
    2 hours ago

    ~/Projects/$TOPIC_OR_LANGUAGE/$PROJECT_NAME

    ie.

    • ~/Projects/Web/passport.ink for a web dev project
    • ~/Projects/Minecraft/synthetic_ascension for a Minecraft mod
    • ~/Projects/C++/journalpp for a C++ library
  • mlfh
    link
    fedilink
    arrow-up
    16
    arrow-down
    1
    ·
    6 hours ago

    ~/dev/, with project/org subdirectories

      • mlfh
        link
        fedilink
        arrow-up
        5
        ·
        edit-2
        3 hours ago

        I actually have my whole home directory like that for that reason haha

        bin - executables
        dev - development, git projects
        doc - documents
        etc - symlinks to all the local user configs
        med - pictures, music, videos
        mnt - usb/sd mountpoints
        nfs - nfs mountpoints
        smb - smb mountpoints
        src - external source code
        tmp - desktop
        
  • Luna@lemdro.id
    link
    fedilink
    English
    arrow-up
    5
    arrow-down
    1
    ·
    edit-2
    5 hours ago

    ~/projects for things I made

    ~/git for things other people made

  • Mike Wooskey@lemmy.thewooskeys.com
    link
    fedilink
    English
    arrow-up
    6
    ·
    edit-2
    6 hours ago

    ~/git/vendor/<gitUser>/<repo>

    and

    ~/git/<myName>/<forge>/<user>/<repo>

    Examples:

    ~/git/vendor/EnigmaCurry/d.rymcg.tech
    ~/git/mike/forgejo/mikew/myproject
    ~/git/mike/github/johndoe/otherProject
    
  • Irdial@lemmy.sdf.org
    link
    fedilink
    arrow-up
    6
    ·
    6 hours ago

    Like others, I have a folder in my home directory called “Code.” Most operating systems encourage you to organize digital files by category (documents, photos, music, videos). Anything that doesn’t fit into those categories gets its own new directory. This is especially important for me, as all my folders except Code are synced to NextCloud.

  • mbirth
    link
    fedilink
    arrow-up
    8
    ·
    6 hours ago

    Same, but by language, e.g. Development/Python.

    • comfy
      link
      fedilink
      arrow-up
      2
      ·
      2 hours ago

      Thinking of the projects I work on, I don’t understand the value in categorizing by language, rather than theme (~/Development/Web/, ~/Development/Games/) or just the project folders right there.

  • I tend to follow this structure:

    Projects
    ├── personal
    │   └── project-name
    │       ├── code
    │       ├── designs
    │       └── wiki
    └── work
        └── project-name
            ├── code
            ├── designs
            └── wiki