git config

تنظیمات گیت

ایمن

ساختار دستور

git config [options] name [value]

نمونه‌های کاربردی

git config --global user.name "Matin"

تنظیم نام

git config --global user.email "me@example.com"

تنظیم ایمیل

git config --global init.defaultBranch main

شاخهٔ پیش‌فرض main

git config --global pull.rebase true

استفادهٔ پیش‌فرض از rebase در pull

git config --global alias.st status

ساخت میان‌بر git st

git config --list

نمایش همهٔ تنظیمات

آپشن‌های مهم

--global
برای کاربر فعلی
--local
فقط این مخزن
--list
فهرست
--unset
حذف تنظیم