What Are Git and Github- An Easy Explanation
Leave a Comment / Uncategorized
When you make a mistake when typing something, you often press control+z, in order to undo it. However, sometimes you realized that you’ve made a series of mistakes, so you do this several times in order to go to a previous version of your file.
The same principle can be applied to coding, where a mistake can ruin a whole program. You may have changed something while adding a feature, and this change would create a bug which would mess your code up. This principle of going back to a previous version is called version control. Most programmers use a tool called git, in the terminal, in order to “save” each version, so that if they ever mess something up, they can always revert back to the previous stable version.
Github is and online tool to be used with git, that allows programmers to collaborate on projects, and also allows you to build a portfolio. A copy of the files are located on the website, so you and other people on your team can create changes on your own machines, and “push” them onto the version that’s located on Github. Your whole team can see who made what change, and revert to a version without certain changes as needed.
I mentioned earlier that Github can also be used to host a portfolio. You can push all of your projects to GitHub, that way whenever you need to show an employer your previous works, they can just pull up your Github profile, and view your projects with their source code.
I hope you learned something from today’s post! Comment below as to what you may want to hear about next. Peace.
UZSaeed