3 ms·
Really? You don't know what a repository is? Or are you just being hypothetically ignorant? I believe that somebody googling git usage is going to be a littl
by aiscott 15y ago
Really? You don't know what a repository is? Or are you just being hypothetically ignorant?
I believe that somebody googling git usage is going to be a little bit conversant in the topic of version control.
- jgroome 15y agoWell, we use Git at my work, and I have a vague idea of what a repository is... But not really. I also have to say this: > I believe that somebody googling git usage is going to be a little bit conversant in the topic of version control. So you seriously believe somebody trying to learn about version control will already know about version control?
- aiscott 15y agoWell, you proved me wrong, but a few minutes ago I did believe someone googling about git would know something about version control. For the same reason that I believe someone googling about haskell or erlang probably knows something about programming.
- reinhardt 15y agoAlso someone googling about recursion probably knows something about recursion (e.g. that he is googling for it).
- brador 15y agoReally. For me a repository is somewhere I might leave something...storage...like dropbox maybe? I don't know what it means in the github jargon sense. I have no idea what version control is specifically, but again, I guess it is v1.0 v2.0 etc.
- aiscott 15y agoI'm sorry for my attitude. There were some other posts that were doing the hypothetical thing and I guess I was having an allergic reaction. I forget that this site is about startups and not specifically programmers or people with a heavy IT background. It's my fault and I apologize.
- thomaslangston 15y agoIt is very much like dropbox, in that a repository is a special purpose folder that the git application can run against. One difference is that you can have multiple of these folders, not only on your local machine but also on remote servers.
- brador 15y agoSo let me see if I get this right. A repository is like a slave folder to a master folder, when the master folder is updated (the github folder) the contents are automatically copied to all repositories. In this way, it saves from having to update all folders manually and keeps everything in one place, with only one thing needing changes, which then propogate automatically to where they are needed? Any idea what version control is?
- danneu 15y agoi use git and here's an example. you can think of a repository as a git-aware folder of code. if you go into your My_Documents folder, type `git init`, it's now a repository. if you click New Repository on github.com, navigate back to your local My_Documents repo, type `git remote add my_github_repo git@github.com:brador/my_documents.git`, you can then push your local repo into that repo with `git push my_github_repo` from your local repo. or if someone else commits to my_github_repo, you can pull changes downstream with `git pull my_github_repo`. git will check repos against eachother for conflicts. i don't think a "master folder" really makes sense. if you're developing an app, you generally start with that local git init repo, and then you may push it to github. but then you may delete that local repo or go to another computer and type `git clone git@githjub.com:brador/my_documents.git` and it creates a local repo that you can resume working on. i think the point of decentralized version control like git is that there doesn't need to be a master repository. you can always merge repositories into eachother.
- brador 15y agoThanks, that explanation actually makes quite a lot of sense!