Home » Categories » Multiple Categories |
How To Install Git on Debian 7 |
Article Number: 196 | Rating: Unrated | Last Updated: Sun, Jan 5, 2014 at 8:23 PM
|
About GitGit is a version control system distributed under the terms of the GNU General Public License v.2 since its release in 2005. It allows for non-linear development of projects and can handle large amounts of data effectively. This is the case because every working directory in Git is a full-fledged repository with complete history and tracking capabilities that are non-dependent on network access or a central server.The advantages of using Git stem from the way the program stores data—unlike other VCS’s, it is best to think of the storage process as a set of snapshots of a mini filesystem primarily on your local disk, maximizing efficiency and allowing for powerful tools to be built on top of it. Install Git with Apt-GetInstall Git with apt-get in one command!sudo apt-get install git-coreThe end! Just kidding, you still need to configure Git. If you wish to download the most recent version of Git from the source, follow the next step. Otherwise, skip down to setup. Install Git from the SourceRun "apt-get update" to make sure that you download the most recent packages to your server. After that is successful, we are going to download all of the required dependencies (line 1). Finally, only after following the two preceding steps, may you move on to installing the latest version of Git via the google code page (line 2).Line 1 sudo apt-get install libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev build-essentialLine 2 wget https://git-core.googlecode.com/files/git-1.8.1.2.tar.gzAfter it downloads, untar the file and switch into that directory: tar -zxf git-1.8.1.2.tar.gz cd git-1.8.1.2 Global InstallThis is a slightly different and more complex process. But do not worry, weary traveler! If you wish to perform a global install it's a two-step process: 1) Install it once as yourselfand 2) Install it once as root. make prefix=/usr/local all sudo make prefix=/usr/local install How to Setup GitAfter Git is installed you need to copy your username and email in the gitconfig file. Using the nano command "sudo nano ~/.gitconfig" will open a completely blank page, as you have just done a fresh install. Insert the necessary information with the following commands:git config --global user.name "NewUser"git config --global user.email newuser@example.comYou can see all of your settings with this command: git config --list |
Attachments
![]()
There are no attachments for this article.
|
Intermediate Sed: Manipulating Streams of Text in a Linux Environment
Viewed 10151 times since Fri, Dec 27, 2013
Installing and Using the Vim Text Editor on a Cloud Server
Viewed 2685 times since Fri, Dec 27, 2013
How To Install nginx on Ubuntu 12.04 LTS
Viewed 2911 times since Tue, Dec 24, 2013
How To Install Wordpress on Arch Linux
Viewed 2693 times since Sun, Dec 29, 2013
How To Create, Remove, & Manage Tables in PostgreSQL on a Cloud Server
Viewed 3414 times since Mon, Dec 30, 2013
How To Install Wordpress on Ubuntu 12.04
Viewed 2732 times since Tue, Dec 24, 2013
How To Install Opigno on Debian 7 with Git and Drush
Viewed 3993 times since Sat, Jan 4, 2014
A Comparison of (Rack) Web Servers for Ruby Web Applications
Viewed 8381 times since Mon, Dec 30, 2013
How To Install phpMyAdmin on a LEMP server
Viewed 2547 times since Thu, Dec 26, 2013
How To Install Git on Ubuntu 12.04
Viewed 6351 times since Mon, Dec 23, 2013
|