Skip to content

Git config

  • global git config file exists at ~/.gitconfig
  • set up global git config file

    git config --global user.name "me"
    git config --global user.email "email@ahmad-ali14.com"
    
  • so the file is at ~/.gitconfig will contain:

[user]
    name = "me"
    email = "email@ahmad-ali14.com"
  • sort out git commands interactively in vscode instead of vim
git config --global core.editor "code --wait"
  • and the global git config file is at ~/.gitconfig will contain:
[user]
    name = "me"
    email = ""
[core]
    editor = "code --wait"