Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git config

git config --global user.name "John Doe"
git config --global user.email johndoe@example.com
Comment

where is global config file for git

git config --global --edit 
# It will open git config file and you can make necessary changes
Comment

global configuration git

git config --global user.name "pseudo"
git config --global user.email "email@test.com"
git config --global user.password "password"
Comment

git global config location

To track down the file holding each config option set on your own system:
  git config --list --show-origin

Generally, there are three configs:
  * git config puts stuff in <repo root>/.git/config by default
  * git config --global puts stuff in <user home>/.gitconfig
    * On Linux/macOS, this means ~/.gitconfig
    * On Windows, this means %HOMEDRIVE%%HOMEPATH%.gitconfig
      (not %USERPROFILE%.gitconfig; these are not always the same)
  * git config --system puts stuff in a global config file shared by all users
    * On Linux, it's /etc/gitconfig
    * On macOS, it's /Applications/Xcode.app/Contents/Developer/usr/etc/gitconfig
    * On Windows, it's <wherever you installed Git>/etc/gitconfig
Comment

git config command

git config
Comment

git config

# Get system value
$ git config --system --get https.proxy
$ git config --system --get http.proxy

# Get global value
$ git config --global --get https.proxy
$ git config --global --get http.proxy

# Check configuration for your user
$ cat $HOME/.gitconfig

# Unset system value
$ git config --system --unset https.proxy
$ git config --system --unset http.proxy

# Unset global value
$ git config --global --unset https.proxy
$ git config --global --unset http.proxy
Comment

PREVIOUS NEXT
Code Example
Shell :: remove nginx mac 
Shell :: list users in linux 
Shell :: docker centos no space left on device 
Shell :: skript execute console command 
Shell :: undo last git commit 
Shell :: hot to remove .env from git 
Shell :: chmod 777 ubuntu xampp 
Shell :: snap install 
Shell :: start docker service on windows 
Shell :: hardhat install 
Shell :: brew list services 
Shell :: how to pull and overwrite local changes git 
Shell :: install react 16 
Shell :: disconnect local git repo from remote 
Shell :: redis flushall docker 
Shell :: ubuntu add permission to folder 
Shell :: add spacer to dock macos 
Shell :: brew install jdk 8 
Shell :: how can I see my gatsby version 
Shell :: how to unzip in gitbash 
Shell :: linux recursively find directory by name 
Shell :: update powershell using cmd windows 10 
Shell :: davinci resolve ubuntu intel gpu processing mode empty 
Shell :: completely uninstall apache from ubuntu 
Shell :: git config all users 
Shell :: git remove all tags from remote 
Shell :: git add filename too long 
Shell :: arch linux emoji not showing 
Shell :: hash sum mismatch ubuntu 20.04 
Shell :: install pecl ubuntu 
ADD CONTENT
Topic
Content
Source link
Name
4+3 =