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?
~/Documents/projects/<YYYY>-<MM>-<DD>_<name>
~/git, for projects I cloned from the web because I don’t know how to code :(
~/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.
~/.projects
Similar, but I’m not ashamed of having my projects on display, so it’s just
~/projects
for me.
~/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
~/projects
for things I made~/git
for things other people made~/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
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?I do this too, maybe this explains why
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.
/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.
I have $HOME/src for projects that are executables and $HOME/lib for ones that are libraries/dependancies/etc
Same here!
~/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.
Unfortunately I’m still on windows, so [User]/Documents/Projects/*
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
Usually, I throw college assignments in a folder under documents.