Config Generator

Config Generator

Git config generator online. Generate git config commands for name, email, aliases, and settings. Configure Git easily—copy commands free.

👤 User Settings

⚙️ Core Settings

🎛️ Additional Options

📋 Git Commands

git config --global init.defaultBranch main Default branch for new repos
git config --global core.editor "code --wait" Default text editor
git config --global core.autocrlf input Line ending conversion
git config --global push.default simple Push behavior
git config --global color.ui auto Colored output

Tips

  • • Commands use --global to apply to all repositories
  • • Remove --global for repo-specific settings
  • • View current config with git config --list
  • • .gitconfig is located at ~/.gitconfig

Features

  • Generate `git config` commands
  • Global vs Local config selector
  • Common settings (user, core, alias, color)
  • Preview resulting .gitconfig file

Common Use Cases

  • Setting up a new machine
  • Configuring a specific repo with a different email
  • Enabling helpful colors and behaviors

Git Configuration

Git settings are stored in text files. System (all users), Global (current user), and Local (current repo). Local overrides global, which overrides system.

Examples

Valid - Set Identity
git config --global user.name "John Doe"
git config --global user.email john@example.com
Valid - Default Editor
git config --global core.editor "code --wait"

Frequently Asked Questions

Where is the file?
Global config is usually at `~/.gitconfig`.
List all settings?
Run `git config --list`.

💡 Tips

  • Set `init.defaultBranch` to `main` to stop creating `master` branches by default.