GitHub is a web hosting service for version control using Git. It is mainly used for computer code. It provides every distributed version control and source code management functionality of Git. In addition, it has features of its own.

GitHub brings together the world’s largest community of developers to discover, share, and build better software.

GitHub Repository

 A repository is just like a folder for your project. A repository contains all of your project’s files with each file’s revision history.  It is a place where you can also discuss and manage your project’s work within the repository. In addition, you can own repositories individually, or you can share ownership of repositories with other people in an organization.

Cloning new Repository in GitHub
  1. Download and install source tree:
  2. Once downloaded, install it in your machine.
  3. After installation is complete, open source tree to clone new repository by clicking on File>Clone/New…
  4. Enter Git repository URL.
  5. Select the destination path of your system location, where you want to map repository at your local machine.
  6. Click on the ‘Clone’.
  7. You should see repository is cloned and mapped.

How to Clone new Repository in GitHub

 How to Pull, Push, and Commit using Source Tree?
  1. To pull the latest code from remote (Git) click on ‘Pull’ button from the menu.
  2. It will prompt popup as shown below. Select branch and click on the ‘OK’ button.How to Clone new Repository in GitHub
  3. Click on the ‘Commit’ button.
  4. All your changed files will show in unstage section.
  5. Select files from the unstage section and click ‘Stage selected’ button.
  6. You should see files moved in the stage section.
  7. Enter a comment in the comments section.
  8. Click on the ‘Commit’ button. You should see the commit number added in the Push button.
  9. Click on ‘Push’ button, it will prompt you popup, select branch and click on ‘Push’ button.
  10. Your code will automatically check-in in the repository.

You may also like: Commonly used Git Commands

Leave a comment

Your email address will not be published. Required fields are marked *