How do you organize your (Git) repos on your computer?

Forum rules
We believe in Hello and Thank You.
User avatar
kexolino
Common Boob
Posts: 557
Joined: Sun Jun 16, 2013 1:57 pm

How do you organize your (Git) repos on your computer?

Unread post by kexolino » Fri Feb 20, 2015 3:22 pm

The Git howto thread reminded me of this. I wanted to open the thread when I first started using it, but then just forgot.

So the way I do it is I just simply link all the files/folders that go into my Dotfiles repo to ~/GitHub/Dotfiles, so that when a change is made, there's no need to copy everything again.

I'm pretty sure this is far from the best way of doing it, so I'd like to see how you guys do it.

User avatar
GekkoP
Emacs Sancho Panza
Posts: 5878
Joined: Tue Sep 03, 2013 7:05 am

Re: How do you organize your (Git) repos on your computer?

Unread post by GekkoP » Fri Feb 20, 2015 3:37 pm

I have a ~/githubs folder where I put my repos and all the repos I cloned. This of course means I got some duplication (.emacs.d, scripts, dotfiles) but it works for me.

User avatar
Dr_Chroot
Alfalfa
Posts: 1100
Joined: Mon Jun 09, 2014 9:49 pm
Location: among the sagebrush
Contact:

Re: How do you organize your (Git) repos on your computer?

Unread post by Dr_Chroot » Fri Feb 20, 2015 6:21 pm

I just have a ~/git folder where I have my dotfiles repo and any repos I have cloned. I then just cp my dotfiles to it as I change them and update the repo; nothing fancy :)
Fight internet censorship.
EFF | Tor Project | Bitcoin

"There have been times throughout American history where what is right is not the same as what is legal. Sometimes to do the right thing you have to break the law." - Edward Snowden

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: How do you organize your (Git) repos on your computer?

Unread post by machinebacon » Fri Feb 20, 2015 6:22 pm

Like everybody else: ~/git

:)
..gnutella..

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: How do you organize your (Git) repos on your computer?

Unread post by dkeg » Fri Feb 20, 2015 8:04 pm

$HOME/git - only a couple items
/data/git/ - most clones
/data/dkegit/ - bitbucket repos

Why bitbucket? One, my GH is a mess. Two, I can have private repos

Work hard; Complain less

User avatar
wuxmedia
Grasshopper
Posts: 6454
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: How do you organize your (Git) repos on your computer?

Unread post by wuxmedia » Fri Feb 20, 2015 8:58 pm

Just raw in the $HOME :(
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
DebianJoe
Frame Buffer
Posts: 1915
Joined: Mon Jul 01, 2013 5:41 am
Location: emacs.d

Re: How do you organize your (Git) repos on your computer?

Unread post by DebianJoe » Sat Feb 21, 2015 12:34 am

Mine stay in a directory hierarchy that is based on subject matter (often style of project, wm's and configs in one place, scripts in another, etc.). Normally I push after making changes, but automate the pulls to keep things in sync, especially across different systems. If a file HAS to be in $HOME, then I'll make a backup copy in $HOME/dotfiles with the name converted to reflect the system that will be using it.

eg: $HOME/dotfiles/vimrc_hostname is pretty easy for me to keep up with, and I'll just use cp to move it into ~/.vimrc on the system that it is specific to.
|>>BBQ Roaster, Alpha Branch<< | >> clinky << | >> X11 must die << |
Thanks BASIC

User avatar
ivanovnegro
Minister of Truth
Posts: 5449
Joined: Wed Oct 17, 2012 11:12 pm

Re: How do you organize your (Git) repos on your computer?

Unread post by ivanovnegro » Sun Feb 22, 2015 10:22 am

Mine is a mess, so I have some raw in Home and all the stuff from the grill in ~/Git.

User avatar
kexolino
Common Boob
Posts: 557
Joined: Sun Jun 16, 2013 1:57 pm

Re: How do you organize your (Git) repos on your computer?

Unread post by kexolino » Sun Feb 22, 2015 8:29 pm

Nice to see how you do it, and to know I'm not the messiest for once ;)
Guess I'll stay with the linking for the few files I have, for now. It's good enough for my lazy brain.

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: How do you organize your (Git) repos on your computer?

Unread post by dkeg » Sun Feb 22, 2015 8:54 pm

well, I'm sure they all start out nice, overtime it crumbles

Work hard; Complain less

User avatar
kexolino
Common Boob
Posts: 557
Joined: Sun Jun 16, 2013 1:57 pm

Re: How do you organize your (Git) repos on your computer?

Unread post by kexolino » Sun Feb 22, 2015 10:15 pm

yeah, but at this point, it's pretty easy to keep it organized. My downloads folder on the other hand... I think tidy people would die a little inside if they saw it.

Post Reply