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?

  • JustEnoughDucks@feddit.nl
    link
    fedilink
    arrow-up
    8
    ·
    edit-2
    2 days ago

    ~/workspace/git

    That way I can also keep other stuff in the same “workspace” directory and keep everything else clean

    I have a Code, simulations, ECAD, and FreeCAD folder in the workspace folder where projects or 1-offs are stored and when I want to bring them to git, I copy them over, play around in the project folders again, then copy changes over when I am ready to commit.

    I could better use branching and checking out in git, but large mechanical assemblies work badly on git.

  • Mike Wooskey@lemmy.thewooskeys.com
    link
    fedilink
    English
    arrow-up
    8
    ·
    edit-2
    3 days 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
    
  • Luna@lemdro.id
    link
    fedilink
    English
    arrow-up
    7
    arrow-down
    1
    ·
    edit-2
    3 days ago

    ~/projects for things I made

    ~/git for things other people made

  • Dr. Bluefall@toast.ooo
    link
    fedilink
    English
    arrow-up
    5
    arrow-down
    1
    ·
    edit-2
    3 days 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
  • picandocodigo@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    3 days ago

    I use ~/workspace . I think I got this from when I first started using Java years ago. Eclipse created new projects in this directory by default maybe?

  • donio@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    3 days ago

    Any naming convention is fine as long as it’s meaningful to you. But it’s a good idea to keep your own repos separate from the random ones you clone from the internet.

  • nzeayn@lemmy.world
    link
    fedilink
    arrow-up
    3
    arrow-down
    1
    ·
    3 days 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.

  • vinnymac@lemmy.world
    link
    fedilink
    arrow-up
    2
    arrow-down
    1
    ·
    3 days 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.

  • RoyaltyInTraining@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    3 days ago

    Same! I also have a separate directory for college assignments and stuff. Gonna set up separate gitconfigs for both soon, so there is a smaller chance of mixing up my credentials