makeporngreatagain.pro
yeahporn.top
hd xxx

Installing Git Of Amazon Linux With Basic Environment Setup

2,717

Installation of Git

  1. Using RPM based GNU/Linux distribution, then use yum command as given
    yum -y install git-core
  2. Check git version:
    git --version
  3. Add user
    useradd git
  4. Set password
    passwd git
  5. Set password authentication on
    sed -ie 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config

Customize Git Environment (Client or local machine)

Git provides the git config tool, which allows you to set configuration variables. Git stores all global configurations in .gitconfig file, which is located in your home directory. To set these configuration values as global, add the –global option, and if you omit –global option, then your configurations are specific for the current Git repository.

You can also set up system wide configuration. Git stores these values in the /etc/gitconfig file, which contains the configuration for every user and repository on the system. To set these values, you must have the root rights and use the –system option.

When the above code is compiled and executed, it produces the following result

  1. Setting username: This information is used by Git for each commit.
    git config --global user.name "Jerry Mouse"
  2. Setting email id: This information is used by Git for each commit.
    git config --global user.email "jerry@webmagicinformatica.com"
  3. Avoid merge commits for pulling: You pull the latest changes from a remote repository, and if these changes are divergent, then by default Git creates merge commits. We can avoid this via following settings.
    git config --global branch.autosetuprebase always
  4. Color highlighting: The following commands enable color highlighting for Git in the console.
    git config --global color.ui true
    
    git config --global color.status auto
    
    git config --global color.branch auto
  5. Setting default editor: By default, Git uses the system default editor, which is taken from the VISUAL or EDITOR environment variable. We can configure a different one by using git config.
    git config --global core.editor vim
  6. Setting default merge tool: Git does not provide a default merge tool for integrating conflicting changes into your working tree. We can set default merge tool by enabling following settings.
    git config --global merge.tool vimdiff
  7. Listing Git settings: To verify your Git settings of the local repository, use git config –list command as given below.
    git config --list

 

Leave A Reply

Your email address will not be published.

baseofporn.com https://www.opoptube.com
Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.