I develop lots of class libraries for various things, and also websites in general, but I've never really used any version control system at all and I know I'm missing out big time.
I've been studying Git and Github, but I'm struggling a little bit to understand some simple concepts.
- Should I create my local repository in the same directory I work from? I seem to be getting conflicting information on this. Many of the video and reading guides I find online seem to do this, but then I'm confused on how I handle config files and things that I have to update locally in order to work on it, but I don't want to include my local version of the config file when I push files back to the remote repository. I know I can pick and choose which files to push at any given time, but if I end up with of stuff like that it seems like it'd be tough to manage..??
- Is there some sort of standard for setting up forks and branches? Different guides seem to do things different ways, and when I fork another project I'm a little confused on all the different branches I see there.
If I'm creating my own repository on Github for a class of mine, do I create separate branches for "master", "stable", and "development"? Is there guide less than 100 pages long on understanding how that all works together? It seems like I keep reading lots and lots of info but I'm not comprehending anything on how to actually use this stuff.
- Can I use Git on my own web server to manage general websites that I build (and any project I want, really) rather than using Github?
I know I've got more questions but I don't want this to get too crazy right away. Any information on the above would be awesome. Thanks!