r/learnprogramming • • Jan 03 '20

I'm thinking about running a Python course for beginners live streamed on YouTube so it can be interactive. Would you be interested?

It's just an idea. Would you join? I've already run a course at my company so I've got all the materials and everything.

Edit:
I made a YouTube channel, you can subscribe here: https://www.youtube.com/channel/UCuiHDgG-Vzkg4wbaCe9nczQ
There are still an awful lot to do, please be patient, I'll post in r/learnprogramming when I'm ready.

2.1k Upvotes

413 comments sorted by

View all comments

Show parent comments

5

u/cubicuban Jan 04 '20 edited Jan 04 '20

Git is useful because it allows you to go into any existing repo and experiment with their code without affecting the existing project. Say you have an essay you want to add a paragraph to. The original essay is located in the master branch, you would create a new version of the essay using a new branch and add your modifications. Then you would merge your changes back into the original paper using a pull request. Once the changes have been accepted your new paragraph is now added to the original file. The terms you need to know are:

Git init - initializes the project

Git commit - allows you to save a certain version of your project based on this commit. The commits are saved within branches

Git checkout “branch name” - branches basically are where you can experiment without affecting the project which is usually the master branch. You can have as many branches as you’d like and can even go back in time to a specific commit and reset a branch or abandon a branch and it will not affect the master branch if it has not been pulled.

Once you have you changes, you need to create a pull request and push your changes to the origin branch and once those changes are accepted you can see your changes within the project.

Git is an amazing tool and github is basically where you can store all your local repos. I honestly got hired because I understood how git worked and could use it locally. We work with ADO which is like GitHub in that that is where our repos exist and it is connected to VS, which is where our local code exists. Every company uses some type of version control and understanding how it works is essential. It is not hard to learn at all, it just takes practice but you really only need to know a few terms and then it’s just repetition. I Hope this made sense!

1

u/T05KA Jan 17 '20

Thank you!