How do you organize your (Git) repos on your computer?
Forum rules
We believe in Hello and Thank You.
We believe in Hello and Thank You.
How do you organize your (Git) repos on your computer?
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.
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.
Re: How do you organize your (Git) repos on your computer?
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.
- 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?
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
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
-
- 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?
Like everybody else: ~/git
:)
:)
..gnutella..
Re: How do you organize your (Git) repos on your computer?
$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
/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
- 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?
Just raw in the $HOME :(
Re: How do you organize your (Git) repos on your computer?
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.
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.
- 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?
Mine is a mess, so I have some raw in Home and all the stuff from the grill in ~/Git.
Re: How do you organize your (Git) repos on your computer?
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.
Guess I'll stay with the linking for the few files I have, for now. It's good enough for my lazy brain.
Re: How do you organize your (Git) repos on your computer?
well, I'm sure they all start out nice, overtime it crumbles
Work hard; Complain less
Re: How do you organize your (Git) repos on your computer?
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.