this post was submitted on 20 Aug 2024
8 points (90.0% liked)

Linux 101 stuff. Questions are encouraged, noobs are welcome!

1060 readers
1 users here now

Linux introductions, tips and tutorials. Questions are encouraged. Any distro, any platform! Explicitly noob-friendly.

founded 1 year ago
MODERATORS
 

There’s a lot of detailed information if you’re dealing with running a git server (/srv/git) or dealing with development (follow your company’s policies), reams of information about how to organize files inside a repository, and some apps will handle their own repository location (chezmoi), but not much about just keeping your personal git repositories organized without cluttering up your home folder:

  • a lot of Youtube videos are just grabbing a couple files so end up cloning into ~/Downloads and cleaning up later
  • GitHub and GitLab tutorials just mention clone into the folder of your choice
  • Codeberg’s “Your First Repository” has you cloning into ~/repositories
  • so, what have you found to be the cleanest/simplest/most comfortable?
    • “top-level” folder like ~/repositories or ~/repos ?
    • move down a level like ~/Documents/repos ?
      • (make use of an unused XDG folder like ~/Public ? (doesn’t seem likely))
    • something else that everyone adopted ages ago ?
you are viewing a single comment's thread
view the rest of the comments
[–] AceSLS@ani.social 4 points 2 months ago* (last edited 2 months ago)

I have them in

  • ~/Documents/Source for things I just want to look through but not compile myself
  • ~/Documents/Code/(Language)/(Project) for things I code by myself
  • ~/Programs/(Project) for things I actually modify and plan to compile and use myself

If you're wondering why Documents? I guess that just sticked from windows and made kind of sense, not that the nesting matters anyway with zoxide