• About
  • Advertise
  • Privacy & Policy
  • Contact
Tech News, Magazine & Review WordPress Theme 2017
  • Home
  • Computers
  • Games
  • Internet
  • Image
  • Top downloads
No Result
View All Result
  • Home
  • Computers
  • Games
  • Internet
  • Image
  • Top downloads
No Result
View All Result
Flickroom
No Result
View All Result
Home Others

How To Install Git on Ubuntu 18.04 / 20.04

Share on FacebookShare on Twitter
introduction
Git is a version dominance system used in modern software development. It allows multiple developers to work on the same project while tracking changes, revisions, and contributors .
This bit-by-bit steer walks you through installing and configuring Git on Ubuntu 18.04 or Ubuntu 20.04.
tutorial on installing and using git for all current ubuntu versions Prerequisites

Reading: How To Install Git on Ubuntu 18.04 / 20.04

  • Access to a user account with sudo or root privileges
  • A server with any Ubuntu release up and running.
  • Access to a command line/terminal window (Ctrl-Alt-T)
  • The apt-get tool, pre-loaded in Ubuntu and other Debian-based distros

Contents

  • 1 Install Git with Apt on Ubuntu
  • 2 Install Git From Source Code
  • 3 Configuring Git
    • 3.1 Basic Git Commands

Install Git with Apt on Ubuntu

Using the apt software management tool is the easiest way to install Git. however, the version in the nonpayment repositories may not be the latest spill from the developer. If you want to install the latest release, skip down to install from source .
1. To update the packages, launch a terminal window, and enroll :

sudo apt-get update

This helps to ensure you ’ ra working with the latest software versions .
2. To install from the default repositories, enter the keep up :

sudo apt-get install git

Allow the process to complete .
3. Verify the installation and interpretation by entering :

git --version

The output should appear as seen below :
verifying that git was installed successfully on ubuntu

Install Git From Source Code

To use the latest translation of Git on Ubuntu, download and install from the original source code .
1. Start by installing the pursuit packages :

sudo apt install make libssl-dev libghc-zlib-dev libcurl4-gnutls-dev libexpat1-dev gettext unzip

Allow the action to complete .
2. Open a browser window and voyage to the follow address :
hypertext transfer protocol : //github.com/git/git
3. You can select the version of Git  you download by changing the branch to a specific translation. Select the Master Branch .
besides, at the top, you see a link labeled releases to browse the unlike release versions. It is recommended that you avoid versions labeled with “ rc.” This stands for release candidate, and may not be completely stable .
screenshot of the master download of git with releases 4. Click the green Clone or download clitoris on the right-hand side. Copy the URL by clicking on the file icon .
clone button highlighted in git download 5. Switch back to your command prompt and enter the following :

cd /tmp

6. You are now working in the temp directory. type in the following command :

sudo wget https://github.com/git/git/archive/master.zip -O git.zip

This downloads the Git file, and renames it git.zip .

Read more: What Is My IP? Quickly See My IP Address and My IP Location

Note : If you found a software under the releases page, you can substitute the link to that version. For example :

sudo wget https://github.com/git/git/archive/v2.20.1.zip -O git.zip

7. following, extract the nothing files by entering the command :

unzip git.zip

8. Allow the process to finish. then, move to the new directory :

cd git-*

moving to the big-master directory 9. then, compile the box with the take after command :

make prefix=/usr/local/

10. And once the process is finished, install the software with :

sudo make prefix=/usr/local install

11. Verify Git initiation by entering :

git --version

The output should appear as :

Git version 2.18.0

Configuring Git

Git contains a basic configuration file that holds your information. Setting your username and e-mail cover is essential .
1. In a terminal window, enter the play along and replace your_name with your name, and [email protected] with your electronic mail address. :

git config --global user.name "your_name"

2. Verify configuration changes with the command :

git config --list

The organization should display the name and electronic mail address you barely entered .
confirmation of email during git setup on ubuntu
Note: If you do not make these edits, you will receive a warn when you commit to Git which makes you go back and revise your commits .

Basic Git Commands

This is a number of utilitarian Git commands to help you get started :

  • Find changed files in the working directory: git status
  • Change to tracked files: git diff
  • Add all changes to your next commit: git add
  • Add selected changes into your next commit: git add -p
  • Change the last commit: git commit -amend
  • Commit all local changes in tracked files: git commit -a
  • Commit previously staged changes: git commit
  • Rename a Local branch git branch -m new-name
  • List all currently configured remotes: git remote -v
  • View information about a remote: git remote show
  • Add a new remote repository: git remote add
  • Delete a remote repository git remote remove [remote name]
  • Download all changes from a remote repository: git fetch
  • Download all changes from and merge into HEAD: git pull branch
  • Create a new branch with the command: git branch first-branch

To see more rotter commands use : git --help

Read more: Google Docs Comment Exploit Allows for Distribution of Phishing and Malware

conclusion
now you know how to install Git on your Ubuntu system. You besides learned shape and basic Git commands, which will help you manage your projects more effectively .
For CentOS, Windows, or macOS systems, see our guide on installing Git on CentOS 7, installing rotter on Windows, and installing Git on MacOS. besides, don ’ t forget to download our Git Commands Cheat Sheet for free to have the most normally exploited commands always at your hired hand .

beginning : https://flickroom.net
Category : Web Browsers

Related Posts

Conversion of Prefix to Postfix expression – Flickroom

Google Issues Warning For 2 Billion Chrome Users

Conversion of Prefix to Postfix expression – Flickroom

Hidden Google: 10 Fun Search Tricks

Conversion of Prefix to Postfix expression – Flickroom

Here are the best new Safari extensions to download for iOS 15 and iPadOS 15 (Updated)

Conversion of Prefix to Postfix expression – Flickroom

How to Download Apple Safari on Computer and PC?

Conversion of Prefix to Postfix expression – Flickroom

Internet Download Manager for Chrome Extension 2022 (IDM)

Conversion of Prefix to Postfix expression – Flickroom

Google’s Help Documents Aren’t Always Up To Date

No Result
View All Result
Flickroom

Knowledge of science, technology and life

Follow Us

NEWS

  • Niobi
  • 2 Verified Hotel Reviews of Savis Hotel | https://flickroom.net
  • What is the WordPress .htaccess File?
  • How to install VPSSIM – A lightweight but simple control panel right on SSH
No Result
View All Result
  • Home

© 2021 Flickroom.net