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
    link
    017 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.

  • @k4j8
    link
    023 minutes ago

    ~/github/ and ~/gitea/

  • @nzeayn
    link
    32 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.

  • @[email protected]
    link
    fedilink
    English
    7
    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.

  • Beej Jorgensen
    link
    fedilink
    43 hours ago

    Most of my code and some non-code is under ~/src, but I have repos scattered all around for other things.

  • Dr. Bluefall
    link
    fedilink
    English
    2
    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
    • data1701d (He/Him)OP
      link
      fedilink
      English
      84 hours ago

      Admittedly, that irks me slightly just because of the shared name with the devices folder in root, but do what works for you.

      • @[email protected]
        link
        fedilink
        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 various local user configs
        med - pictures, music, videos
        mnt - usb/sd mountpoints
        nfs - nfs mountpoints
        smb - smb mountpoints
        src - external source code
        tmp - desktop
        
  • Luna
    link
    fedilink
    English
    4
    edit-2
    5 hours ago

    ~/projects for things I made

    ~/git for things other people made

  • Mike Wooskey
    link
    fedilink
    English
    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
    link
    fedilink
    66 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.

    • comfy
      link
      fedilink
      22 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.

  • Foster Hangdaan
    link
    fedilink
    56 hours ago

    I tend to follow this structure:

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