#git the program that represents the repos. it's like twenty years old and was originally made for tracking the development of linux
Explore tagged Tumblr posts
Text
Okay, I'll give it a shot; git is a program. You use it to make a git repository (which is in practice just a folder with some metadata).
The repository stores series of commits. Each commit stores a series of changes made since the previous one - files which have been added, files which have been removed, and changes which have been made to existing files.
(It stores them in branches, which have separate histories, but to begin with you'll just be dealing with one 'main' branch.)
You can then 'push' commits from this local repo to a remote repo, often on a service like GitHub, so the commit history can be shared between different devices, people, etc.
Doing any of this directly with git itself in the command line involves giving it a complicated series of commands in a specific order, often starting with the most complicated stuff before you can get to the simple stuff. In practice, you'll generally be using another program as a wrapper over git; which git client you use is mostly a matter of preference. On Windows good places to start could be the GitHub desktop client, which abstracts a lot of the more complicated bits away, or the default Git Gui which comes with Git for Windows, which maps more directly to whats happening on the command line (but with clearly laid out buttons instead of hard-to-memorise syntax). You shouldn't need to drop down to the command line until you're needing to do more complex stuff.
Start with the basics of getting something versioning, then you can work up into branches and all that if and when you need to. Each step is much easier once you've got a firm footing in the previous one.
Can someone explain to me in like five seconds how to use git, assuming that I know basic shit about coding/command line/whatever but don't know any of the specific terminology related to git. Like every tutorial online is at the same time both over my head and also vastly too basic. Just like. Tell me what it is.
Uh. First tell me its ontology. Is it a program, a standard, a language...? I know that it's for version control. Suppose I wanted to do version control at a piece of code. What do I do. What buttons do I press, on my computer? Tell me these things.
#git#does that work as an explanation? i've only been using this stuff for like a year idk if im at the point where i can properly re-explain it#also to clarify the difference between git and github:#git the program that represents the repos. it's like twenty years old and was originally made for tracking the development of linux#a git remote is just a git repo on a server somewhere#GitHub is a company that makes a business out of hosting servers with git repos on them. there are other ones too#(it's able to have git in its name since git comes from the linux world and so isn't under copyright in any form)#GitHub is the most popular one and is generally what you suggest to beginners since it lets you make both public and private repos for free#(you only have to pay when you need a private repo that multiple people can access)#(this business model is able to make sense because git repos take up a frankly ridiculously small amount of storage space)
476 notes
·
View notes