Skip to content

Latest commit

 

History

History
92 lines (58 loc) · 1.41 KB

05-Practice-Test-Install-Git.md

File metadata and controls

92 lines (58 loc) · 1.41 KB

Practice Test - Install Git

Solutions to practice test - Install git

  • Run the command cat /etc/release and identify the name

    $ cat /etc/*release*
    
  • Run sudo apt update and then sudo apt install git -y. Refer to the GIT installation documentation here: https://git-scm.com/book/en/v2/Getting-Started-Installing-Git

    $ sudo apt update 
    $ sudo apt install git -y
    
  • Run git --version to check version

    $ git --version
    
  • Run git help command and look at the description of each command

    $ git help|more 
    $ git show
    
  • Run git help command and look at the description of each command

    $ git help|more
    $ git branch
    
  • Run git help command and look at the description of each command

    $ git help|more
    $ git fetch
    
  • Run git help command and look at the description of each command

    $ git help|more
    $ git init
    
  • Run git help init command and identify the option used to create a bare repository

    $ apt-get install git-man
    $ git help init
    $ git init --bare