Docs
HomeAutomation and deploymentNetworkOperating SystemSecurityWeb
Automation and deployment
Automation and deployment
  • AI
    • AI List
  • Ansible
    • Playbooks
      • ansible.builtin.get_url
      • ansible.builtin.fetch
      • ansible.builtin.copy
    • Getting started
  • Docker
    • cheatsheet
  • Github
    • Commit
    • Credential config
Powered by GitBook
On this page
  1. Github

Credential config

Setting Git username for every repo

  1. Set username

    git config --global user.name "Mona Lisa"
  2. Confirm that you have set the Git username correctly:

    git config --global user.name

Setting Git username for one repository

  1. Go inside the work project

    cd /path/to/work/directory
  2. Set username

    git config user.name "Mona Lisa"
  3. Confirm that you have set the Git username correctly:

    git config user.name

Store password and id

  1. Before a clone or a pull, do this command to store credentials

    git config --global credential.helper store
PreviousCommit