Github! Github!! Github!!!, People and I mean developers and top companies that know a little or two about websites always say things like send me your Github link or something, now to some they would be saying to themselves "what the hell is Github?". Now am going to explain everything you need to know about Github and how to get into Github.
Let's Go
What is Git?:
Git is a version control system that allows you and your friends to work on projects together through the cloud using Github, Bitbucket etc., let's say for instance you want to build a website and you want to do the FrontEnd part of the website you could just tell your friend to handle the BackEnd side of the website.What is Github?:
Github is a web-based hosting service for version control using git.Now here are the steps to getting started with Github and git.
- Download git from here (https://git-scm.com/downloads) and choose your system type.
- Go over to (http://www.github.com) and register and account.
- Then you would be asked to fill in some informations as to what you want to use github for and also your interest.
- The next step it to create a repository. A repository is where you store all the folders for your code/projects. Write a repository name for your project. For example if your code is about "how to create a slider" for example you could just name the repository as "slider". MAKE SURE YOU TICK THE "Initialize this repository with a README" because this is where you explain your code and also if you've made any changes to the code you state it here also.
- Next step is to create a folder and files for your code
Other Key Definitions you need to know
- Version Control: Basically, the purpose Git was designed to serve. When you have a Microsoft Word file, you either overwrite every saved file with a new save, or you save multiple versions. With Git, you don’t have to. It keep “snapshots” of every point in time in the project’s history, so you can never lose or overwrite it.
- Commit: This is the command that gives Git its power. When you commit, you are taking a “snapshot” of your repository at that point in time, giving you a checkpoint to which you can reevaluate or restore your project to any previous state.
- Branch: How do multiple people work on a project at the same time without Git getting them confused? Usually, they “branch off” of the main project with their own versions full of changes they themselves have made. After they’re done, it’s time to “merge” that branch back with the “master,” the main directory of the project.
Hope this is well explanatory for you guys to understand, if you have any questions feel free to leave a comment below.
Thanks