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?
- arality ( @arality@programming.dev ) 1•5 minutes ago
~/.projects
- JustEnoughDucks ( @JustEnoughDucks@feddit.nl ) 1•54 minutes 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.
- vrighter ( @vrighter@discuss.tchncs.de ) 1•3 hours ago
~/code/$LANGUAGE/$REPONAME
- 0x0 ( @0x0@programming.dev ) 2•3 hours ago
${HOME}/repos
- Matúš Maštena ( @DieserTypMatthias@lemmy.ml ) 1•3 hours ago
XDG Documents folder
- Blaiz0r ( @Blaiz0r@lemmy.ml ) 2•4 hours ago
I used to use
~/dev
but for years now I use~/Workspace
becaue Eclipse made me do it - muhq ( @muhq@discuss.tchncs.de ) 3•5 hours ago
~/code
for everything I want to change/look at the source code.~/.local/src
for stuff I want to install locally from source. - tiny ( @tiny@midwest.social ) English1•4 hours ago
~/repos
- Strit ( @Strit@lemmy.linuxuserspace.show ) 1•4 hours ago
~/git/AUR|dev|whatever/$(git clone)
is where mine usually reside. - rutrum ( @rutrum@lm.paradisus.day ) English3•5 hours ago
~/repo for code I write and ~/src for code I didnt.
- micro ( @micro@programming.dev ) English1•4 hours ago
~/source
- Eryn6844 ( @Eryn6844@beehaw.org ) 1•4 hours ago
/dev/null
- poinck ( @poinck@lemm.ee ) 1•6 hours ago
~/gits
Documentation is usually a
doc
folder inside the repo or just aREADME.md
for small projects. - Ephera ( @Ephera@lemmy.ml ) 1•7 hours ago
For a project called “Potato Peeler”, I’ll put it into a structure like this:
~/Projects/Tools/Potato-Peeler/potato-peeler/
Tools/
is just a rough category. Other categories are, for example,Games/
andMusic/
, because I also do gamedev and composing occasionally.Then the capitalized
Potato-Peeler/
folder, that’s for me to drop in all kinds of project-related files, which I don’t want to check into the repo.And the lower-case
potato-peeler/
folder is the repo then. Seeing other people’s structures, maybe I’ll rename that folder torepo/
, and if I have multiple relevant repos for the Project, then make itrepo-something
.I also have a folder like
~/Projects/Tools/zzz/
where I’ll move dormant projects. The “zzz” sorts nicely to the bottom of the list. - simonced ( @simonced@lemmy.one ) English1•9 hours ago
Like some other ppl here, I clone everything in a git folder under my home directory.