csWiki

the wiki of cscosine


Project maintained by cscosine Hosted on GitHub Pages — Theme by mattgraham

Table Of Contents

✅ Recommended Repository-Only Git Identity Configuration

This ensures your email/name are set per repository only, NOT globally.

note: see also Multi-Account GitHub SSH Setup (Clean and Safe) if you want to setup properly multiple accounts on the same machine

Set Identity for One Repository

Inside the repo:

git config user.name "Your Name"
git config user.email "your.email@email.com"

Verify It

git config --local --list

Or check what Git will actually use:

git var -l
git var GIT_COMMITTER_IDENT
git var GIT_AUTHOR_IDENT

Additional Useful Settings

Those are ok to be global

git config --global color.ui "auto"
git config --global core.editor "nano"

🔥 Remove Global Identity (Optional – If You Want Strict Per-Repo Control)

Remove global config:

git config --global --unset user.name
git config --global --unset user.email

Check:

git config --global --list

✅ Optional: Remove System Identity

(System configs affect the whole machine)

sudo git config --system --unset user.name
sudo git config --system --unset user.email