Trifand logo

Essential Git Commands for Setup & Configuration

Setting up Git properly is crucial for version control. Here are some essential commands to configure and initialize Git for your projects:

 

🔹 Configure User Information

  • Set your name for commit history tracking:
git config --global user.name "[Your Name]"


  • Set your email to associate commits:
git config --global user.email "[Your Email]"


  • Enable automatic color output for better readability:
git config --global color.ui auto



🔹 Initialize & Clone Repositories

  • Initialize an existing directory as a Git repository:
git init


  • Clone an existing repository from a remote URL:
git clone [repository-url]


These commands will help you get started with Git efficiently!

Git Setup & Configuration