Git and Github Essentials

Getting started with Github can be quite overwhelming as a distributed version control system with plenty of commands and additional features for an amazing experience. Every web developer should have knowledge on how to use Git and Github as it is the best way to manage code, collaborate with other developers and portray your skills and competencies to the world.

Let us have an insight into the essentials of using Git and Github.

– Github is delivered as a SAAS based business model used in order to store the source code of the project and to track all the changes to the code.

– Create a respectful and productive working environment with full transparency and workflow.

Every project managed by Git is called a Repository (or a Repo) which further includes several files and folders in order to manage work. This exercise takes you through a workflow of using Git through a Github web interface and learn how to make commits, create issues, create branches, and merge them.

Now that you are aware of Git and Github, you might wonder on how to get started:

  • Start by visiting the Official Github website and create an account.
  • Secondly, install Github on your desktop.
  • Create a repository by clicking on the ‘New repository’ button.
  • Give your repository a suitable title and description and tick mark the ‘Initialize this repository with a README’ checkbox. Click on ‘Create Repository’ and your first repo is ready.
  • Now create your first commit by adding some content to README by following a few steps:

– click on README.md and edit button

– write a short description using a Markdown Syntax and add a short description

– add a commit message and press the commit changes button.

  • Next step comes to ‘Create an Issue’ by going on to the ‘Issues tab’. Assign the task to yourself and label it in an appropriate category.
  • Create a Branch’ to add some new features to the project.
  • After making the required changes, try to merge that file back to your ‘master branch’.
  • You can end by ‘closing the issue’ once you are done with the successful implementation of the changes.

By reading the above information you have now become a better developer than before as you are aware of Github which is the best platform to manage projects and the changes made in the source codes.

Stay connected for further updates!