Git configuration controls behavior like user info, aliases, and defaults.
1. Getting Started
What is Git?
2. Branching & Merging
Branches & Merging
5. Tags & Releases
Git Tags
9. Submodules & Subtree
Git Submodules
10. GitHub Actions
GitHub Actions CI/CD
11. Git Worktrees
Git Worktrees
12. Git LFS
Git LFS (Large Files)
Syntax
GIT
git config --global user.name "Your Name" git config --global user.email "you@example.com" git config --global alias.st status git config --list
Git Configuration
BASH
# Set user info git config --global user.name "Your Name" git config --global user.email "you@example.com" # Set default branch name git config --global init.defaultBranch main # Set editor git config --global core.editor "code --wait" # View all config git config --list # Set alias git config --global alias.st status git config --global alias.co checkout
Practice
1
Exercise
Practice this concept.
Answer
Run the commands as shown above.
Quick Quiz
1
What did you learn?
This covers the basics.
Choose an answer to continue.
Interview Questions
It is a fundamental Git feature.