Latest Updates

Post Top Ad

19 August, 2021

How to Install Git on Linux Machine

Steps to Install Git on Linux Machine



Mainly following steps are involved in Git installation. We will walk through each step in detail. 


  • Provision Linux Machine on AWS Cloud
  • Access Linux Machine
  • Update yum repository
  • Install git rpm
  • Initialize Git Repository
  • User and Email Configuration in git local repo


1. Provision Linux Machine on AWS Cloud

    Click Here for detailed steps: AWS Elastic Cloud Computing (EC2)

2. Access Linux Machine

    Click Here for detailed steps:  Steps to Login to AWS EC2 Machine

3. Update yum repository

    Login to Linux server
    Switch to root user- sudo su - root
    Run command - yum update -y



4. Install git rpm



    Confirm if git is installed and git version
    


5. Initialize Git Repository 

    create a directory where git can be installed
    


    initialize git command
        
        cd piyush
        git init
    


6. User and Email Configuration in Git Local Repo 


    Configure git user and email id:

        git config --global user.name "piyush"
        git config --global user.email "piyushprakashpp@gmail.com"



    Git Config List: List out all users and email ids
        git config --list    

    



No comments:

Post Top Ad

Your Ad Spot

Pages