0 votes
1 view
in DevOps and Agile by (47.8k points)

How do I get started with Git and GitHub?

1 Answer

0 votes
by (107k points)

It looks like you are confused between Git and GitHub. Firstly, let us understand individually what is Git and GitHub.

What is Git?

While writing your code you do not use Git; Git is just used to keep track of changes to your code. Git is a version control system. It means that you use it to keep track of the changes that you make to a set of files in a directory it is called the working tree. So, you really do not have to understand how it does that, except that it keeps a record of all your changes in a repository, which is just a directory called git at the top of your working tree.

Below are the main commands that you have to know in order to use Git:-

  • You can use Git init to makes a repository.

  • Use Git add to registers the changes that you have made to files or directories.

  • Git commit is used to move the changes you registered with Git add into the repository.

What is GitHub?

Whatever you do with Git happens on your own computer. There are many people who want to share their work with you and the other people, so what they do it they set up a Git repository on some server that is accessible through ssh, and use below-mentioned ways:-

  • You can use git push to push their changes into the remote repository.

  • Git clone to make a copy of a remote repository on their local computer.

  • Git pull to pull to keep track of the changes from a remote repository into their local copy.

GitHub is nothing but a service that has been set up so that lots of people have a place to put their code or other things, like documentation where other people can share it.

If you want to know about the difference between these technologies then you can read on Git Vs Github.

To know more about these technologies whether if you are an absolute beginner or you have a little knowledge of GitHub in that case to learn GitHub and all its concepts such as pull request or creating a repository in detail which is necessary for a programmer you can learn it by taking up the GitHub training courseIf you want to learn it by watching the video tutorial then you can have a look at the following tutorial:-


Related questions

Welcome to Intellipaat Community. Get your technical queries answered by top developers !