Now, install the Git using the following command: Then, make the package by running the following command: Next, change the directory to the extracted directory with the following command: Once the download is completed, unzip the downloaded file with the following command: Now, go to your Debian 10 server, open your terminal and run the following command to download your Git version: Now, click on your desired Git version and click on the Clone or download button on the right side of the page then right-click on Download ZIP and copy the link address as shown below:Ĭlick on the Clone or download button on the right side of the page then right-click on Download ZIP and copy the link address. You should see all the version of Git in the following page: Now, click on the master branch and click on the Tags link. You can install all of them by running the following command:Īpt-get install make libssl-dev libghc-zlib-dev libcurl4-gnutls-dev libexpat1-dev gettext unzip -yĪfter installing all the required dependencies, visit the Git mirror using the URL. This is a very flexible method and allows you to download the latest release and will give you some control to customize it.īefore starting, you will need to install some dependencies required to compile Git in your system. If you want to install the latest version of Git then you will need to compile the Git from the source. If you want to remove the Git from your system, run the following command:Īpt-get remove git -y Method 2 – Install Git from Source You should see the Git version in the following output: git version 2.20.1 Once the installation is completed, you can verify the installed version of Git using the following command: You can install the Git by just running the following command: However, the version you install using the repository may be older than the newest version currently available. The simple and easiest way to install Git is to install it from Debian’s default repository. Method 1 – Install Git From Repository on Debian 10 Once all the packages are updated, restart your system if required by the changes. You can update all of them with the following command: In this tutorial, we will explain how to install Git from the Debian default repository and install it from the source on Debian 10.īefore starting, it is always a good idea to update your system packages to the latest version. It is very easy to fetch data from the local repository instead of doing the same from the remote repository. It is about 10 times faster than other VCS tools. Speed : Compared to other version control systems Git is very fast. This will occupy very minimal space and saves a lot of memory space. Git follows the criteria of lossless compression that compresses the data and stores it in the local repository. Lightweight : While you clone the data Git stores all the data from the central repository on to the local repository. Open-Source : Git is an open-source that means you can modify its source code according to your needs. The master branch is the main branch that holds the production quality code. It allows to access the repositories of other Version Control Systems like SVN.īranching : It allows the users to make changes in the project without affecting the original version. It also allows the developers to work simultaneously on the same project, without interfering with others’ work.Ĭompatibility : Git is a cross-platform that means it is compatible with all the Operating Systems. Git Featuresĭistributed System : Git is a distributed system that means it allows users to perform work on a project from all over the world. It is mainly used for source code management and helps to share and collaborate on software development projects. It is designed to handle small to large projects easily with speed. Git is a free, open-source and distributed version control system developed by Linus Torvalds. It allows you to revert selected files back to a previous state, revert the entire project back to a previous state, compare changes over time, see who last modified something that might be causing a problem, who introduced an issue and when, and more. It keeps track of every modification to the code in a special kind of database so that you can recall specific versions later. Version control systems are also known as revision control is a component of software configuration management that helps developers manage changes to source code over time.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |