Git provides different types of commands to work with Git repositories.

Git Cheatsheet Command examples

Git contains different types of commands.

Git Global Configuration Commands

To work with the repository in a server, First, we need to configure the User details such as Name, Email, and color settings.

git config command provides the to change and update configuration globally or repository level.

Syntax

git config scope config_key config_value

Options contain get, set the configurations.


git config --global user.the "username"
git config --global user.email "useremail"
git config --global user.email