Skip Navigation

Where Do You Guys Throw Your Local Git Repos?

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?

84 comments
  • 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.

  • ~/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
    
    
      
  • ~/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.

  • ~/git, for projects I cloned from the web because I don't know how to code :(

  • ~/projects for things I made

    ~/git for things other people made

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

  • ~/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
  • /mnt/shared/Development or E:Development depending on which operating system is running.

    Not in home mainly because I use the same directory in windows and Linux.

  • ~/code/git/<org name>/<project>

    Mostly a holdover from when I regularly pulled svn/hg/cvs repos and needed reminding what tool to use for which project.

    No idea why I still do it.

  • ~/gits

    Documentation is usually a doc folder inside the repo or just a README.md for small projects.

  • ~/Code for coding/dev stuff and ~/gitclone for things that i random clone for some reason. =D

  • 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

84 comments