r/learnpython • • Sep 22 '20

What is learning GIT?

I saw in a post that you have to learn git for most programming jobs, what exactly is git? and where can i learn it, i always just assumed its just uploading your stuff to github. not too sure if this is the right place to post this

347 Upvotes

116 comments sorted by

View all comments

9

u/OiZP Sep 22 '20

Git is separate from GitHub. Git is a local program that helps you keep track of changes on your project (both for mess-ups and keeping track of different versions, ie. master vs. development branch, f.ex.). GitHub is a place you can store your local git project online. You will use git in every SW you will ever have, so definitely worth it to learn.

3

u/theNomadicHacker42 Sep 22 '20

While I definitely agree that git and github are two separate concepts, I wouldn't say that git is used in every sw project you will ever have. Over 10 years in the industry, two of the three companies I've worked at use svn instead of git. That said, git is the definitive better choice and worth learning... and that no new project should ever be choosing svn over git.

1

u/fedeb95 Sep 22 '20

I wouldn't say git is a local program, given its distributed nature. While there's an utility in using it just locally, its true power is unleashed when used remotely to sync stuff

-4

u/Vietname Sep 22 '20

I wouldn't call them separate. Github is just an online implementation of git. Using git with a local repo is functionally the same as using github (at least as far as the command line is concerned), the repo just happens to be located at github's server instead of yours.

2

u/OiZP Sep 22 '20

Yes, that's true, I just meant to say it's not the same thing:) I've heard people talk about them like they are the same, that's why I wrote it like that:)

2

u/[deleted] Sep 22 '20

[removed] — view removed comment

1

u/Lotdinn Sep 28 '20

Also, gitlab exists for those who want something similar to github functionality but more controlled. Sensitive projects still benefit from configuration management but there are reasons not to put them outside of the local network.