Github and Me

While learning about GIT i came across github. So i want to know what is this and use of it in terms of GIT. So i will discuss about Github in this article.

Questions for this article

  • What is Github?
  • What is Repository in Github and how to create one?
  • What is gist in Github and how to create one?
  • What is the difference between Gist and Repository?
  • What is fork?
  • How fork is different from clone?

Note*: These are just compilation of all question and answers are taken from the web. This article is not unique to this website.

What is Github

  • Its a code sharing and publishing service.
  • Github is a website providing git hosting services.
  • Github provides hosted git repository plus some additional services (wikis, bug tracker, etc)

 

What is Repository in Github and how to create one

Repository is a directory or storage space where you can access your project, its files, and all the versions of its files that Git saves. A folder will not be treated special unless and until you execute “git init” command for it. After it only git will accept all git command for this folder and it will be treated as repository.

What is gist in Github and how to create one

Gist is a simple way to share snippets and pastes with others. All gists are Git repositories, so they are automatically versionedforkable and usable from Git.

To create gist login to github and go to https://gist.github.com/

 

What is the difference between Gist and Repository

Gist is a simple way to share snippets and pastes with others. All gists are Git repositories, so they are automatically versionedforkable and usable from Git.

What is fork

If you want to contribute to someone else’s project, or would like to use someone’s project as the starting point for your own. This is known as “forking”. In other words it help you create your own branch of project so that you can do what ever you want to do with this new version without worrying about original project, later if you want to contribute to original project you can send the PULL request from your forked repo to original repo.

How fork is different from clone

Clone is git specific command while Fork is github specific command.  When you are forking any project it doesn’t duplicate everything under your name. But it creates a new view which is specific to you. So if you want to work on any forked project you have to clone this on your local system.

Note*: I am still learning GIT. So there might be some issue in this article. Please help me improve this article.

1 Comment Github and Me

  1. Pattee

    Hi, nice article. I am also learning more Git. I was thinking about the difference between fork and clone. It seems that if you wanted to start a project with others, you’d fork it to your Git Hub account. That makes a separate version of the repo of it in your account. Then when you want to actually do the changing to the repo, then you clone it to your computer/desktop.

    So fork to your account on Git Hub, clone a version to your desktop.

    Reply

Leave A Comment

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