Locate /.git/config
file
- If manage multiple Github account, an easier way to manage them by modify the config file under the git root directory.
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
precomposeunicode = true
sshCommand = "ssh -i /path/to/.ssh/github-key"
[remote "origin"]
url = [email protected]:user/repo.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "gh-pages"]
remote = origin
merge = refs/heads/main