GIT: How to install on your computer?
PART - 1
To install GIT on your machine, you can download it from http://git-scm.com/downloads and install it as follows.On Linux just run the following command in Terminal, that GIT will be installed.
sudo apt-get insall git-core
Step - 1: Run the exe you downloaded on Windows.
Step - 2: Click “Next” from here.
This is the License Agreement. Click “Next” from here.
Step - 3: Here you can find the path to your convenience. Click “Next” from here.
In all of the above, you just keep doing "Next" with no changes.
After that the installation will start and this last screen will appear. You have GIT installed on your machine.
You see that the "GIT Bash" option is added to your "Programs".
Now that Smart git is left, we will see that in the next part.
PART - 2:
As we saw in the previous part, GIT is a system. So what exactly do you need to do to use this system?
1) GIT
2) GIT Client
3) Hosting Provider
We will discuss each of these in more detail.
GIT: This system you have to install on your computer. As mentioned in the previous part, GIT is available free of charge.
It can be downloaded at http://git-scm.com/downloads. If you are using Linux in your Terminal
Run the $ apt-get install git command.
GIT Client: GIT can be run using commands. But for your convenience, some clients are software that provide some user interface for the GIT command. With this you can learn GIT using the simplest things.
The smart GIT option available for this will be discussed in the next part.
Hosting Provider:
There are also some options available for this.
1) GIT Hub
2) Bit Bucket
So everything above is required to implement GIT. But before that we also need to know some terminologies.
Repository - The directory in which you want to save your code and files using GIT is your "Repository", that is, "Storage Location".
GIT commands - There are some commands that you need to know to use GIT.
GIT init: If you want to declare a directory as "Repository" this command is used.
GIT status: This command is used to determine the status of your Repository. This command provides information about which files are loaded (not attached to GIT), which files have been changed, which have been deleted. It is worthwhile to run this command every time because we notice all the changes immediately.
GIT pull: If more than one person is using the repository, you must include the changes they made. This command is used for this. This command incorporates the changes without pushing your changes.
GIT commit: Now the commit command works to update the files you have changed in git. Similarly, we can also write information about what has been changed by this command. For that, use git commit -m “change you made”.
GIT push: This command is used if you want to make the changes you made to the repository on the Internet, i.e, "Remote repository". All changes you make with this command are saved in one version.
If you want to try these commands, GIT has provided a nice feature on their own site.
You can try out these commands directly by going to http://try.github.io/levels/1/challenges/3.
GIT is a very simple and useful thing. Now, in the next part, we will learn how to do all this configuration on our computer.
PART - 3:
GIT: So what exactly?
In fact, GIT is the Version Control and Source Code Management System.
So what version? You may have heard that GIT is the system used only in the context of software projects. But even though it is widely used in this field, any kind of file you can use in GIT. That is, the GIT is also used as a document control system. When it comes to software projects, GIT is a mechanism for storing the code you write together but each time with a new version.
Now to give an example, suppose there are 3 people working on the same project. So if one works and the other works, what do we need to do to combine these two things? Copy from one place and Paste to another Right?
Then there is some confusion in this type and the running software is slow. Likewise, what if you want to handle each version of the change? What if you want to change both in one place? Discard changes now and undo them? What if I want to do a 2-5 version different from a finished version? There are many questions that can be answered by GIT!
This means that it is a system that takes care of your source code along with all the above mentioned events.
Just as GIT is a system, but in this part we will learn about GIT.
A bit about the history of GIT:
There is one thing hidden behind the creation of the GIT system. As you know, the Linux kernel is an open source and very comprehensive project. Since many were working on this project, it was developed in small chunks. In the 5th, however, the linux community started using a propritory DVCS system called BitKeeper. However, due to a dispute between Linux and this company, the free service was shut down. And this is what made the Linux Community, primarily the father of Linus Torvalds (Linux), the inspiration behind the creation of GIT and the birth of GIT.
Features:
The main factors that came up with this feature were:
- Speed
- Simple design
- Strong support for non-linear development (thousands of parallel branches)
- Fully distributed
- Able to handle large projects like the Linux kernel efficiently (speed and data size)
- From 1 linux is very easy to use and very popular as it is a capable system with built in Serb parameters.
- GIT is available free of charge and distributed under the GNU (General Public License).
GIT: How to install on your computer?
Reviewed by Tech Boy
on
September 03, 2019
Rating:
No comments: