Initializing a Repository
git init: Initialize a new Git repository in the current folder.
This sets up a
.git directory that stores all version control data and enables Git to start tracking changes in your project.Setting Up Your Identity
Configure your Git identity:Without
--global, the configuration applies only to the current repository.Viewing Configuration
-
git config --list: View your current Git configuration settings.--global- View global settings (saved in your machine).--edit- Open the configuration file in your default text editor for manual editing.