GitHub-1
Hi…everyone,In this blog I like to discuss about GitHub in detail.
So,in the last blog we have seen how to start a Linux environment on your pc for Golang coding.
Here will see about GitHub.Basically,What is GitHub?Why is it useful?How to use it?How is GitHub helpful to me? and so on….these are the questions that arise generally and it is not a big deal,to come out of this questions.
Here,is the brief introduction about GitHub and their essentials.
Git : Git is a command line tool and distributed peer to peer version control system.
GitHub:GitHub is a code hosting platform for version control and collaboration.It is a place were developers can store their projects and it is a network for all like minded people.
Important Essentials of GitHub:
- Repository, 2.Branches, 3.Commits , 4.Pull Requests.
REPOSITORY:This is usually used to organise a single project.Repositories can contain folders and files,images,videos,spread sheets and data sets etc..anything your project needs.Each project will have its own repository and accessed by unique URL.
BRANCH:Branching is the way to work on different versions of a repository at one time.By default your repository has one branch named Master ,which is considered to be definitive branch.we use branches to experiment and make edits before committing them to Master.
->When you create a branch off the master branch,then you are making a copy or snapshot of master as it was at that point of time.If someone else made changes to the Master branch(of same project you have selected)while you were working on your branch,you could pull those updates.
USE OF BRANCHES?
Here at GitHub ,our developers ,writers and designers use branches for keeping bug fixes and other works separate from Master branch.When change is ready,they merge their branch into master.
Make and Commit Changes:
On GitHub saved changes are called Commits.Each Commit has an associated Commit message,which is a description explaining why a particular change was made.In simple words,Commit messages capture the history of your changes,so the others who work on same project can understand what changes you have done and why?
Open a Pull Request:
Pull requests are the heart of collaboration on GitHub.GitHub provides a perfect medium for you and the projects maintainer to communicate with the help of pull requests.
To understand well about pull request you need to know about forking a repository(repo.).
->Forking a repository:Forking is when you create a new project based on another project that already exists.In detail,if you find a project on GitHub,that you would like to contribute to,you can fork the repo ,make the changes you’d like and release the revised project.
- >So,you fork a repository,make a great revision to the project and want it to be recognized by the original developer may be you want it to be even included in the official project,you can do so by creating a pull request,so the original developer can see it.so,once it is done you can merge them into their branch.
The other important concept in GitHub is changelogs.
Changelogs: When multiple people are collaborating on a project ,its really hard to keep track of who changed what and the track of the revisions that took place. GitHub takes care of this problem by keeping track of all the changes that have been pushed to repository with the help of changelogs.
So,this is the brief introduction about GitHub.In the next blog will see how to create a repository,branch,pull and merging the requests along with some Git commands.
I have tried my level best to make this simple to learn and hope you people can understand.
