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

194

u/BruceJi 📦 Sep 22 '20

Git, the greatest tool that a programmer can use.

On a very basic level, git is just... uploading your stuff to github, sure. But git can do a lot more.

If you upload your changes to it well, it will let you go back in time and see old versions - useful if you introduced a bug or if you accidentally erase stuff.

It lets you set changes aside into separate branches, useful if you want to keep a clean, working version and still be making changes to it.

It makes working with other people easy, too. They can access the same stuff and edit it. Someone will need to check over their changes before they're combined into the main master branch.

Oh, it will also let you know if combining changes like that is complicated and should manually be done. Otherwise it can just combine them itself.

But on a basic level, sure - you upload your code to github. It means you can access it from home and elsewhere, and it also, yeah, means if you screw it up, you can easily go back (providing you update it well!)