Git Cheat Sheet Command Page

Posted on

Initialize an empty repository with either an empty folder or an already filled folder.

git init

Add files or folders to be committed

git add .

Commit files or folders

git commit -m "Commit Message"

Add Git Repository Address

git remote add remote_git_repository_name remote_git_repository_url_address

Display Configured Git Repository Address

git remote -v

Remove Configured Git Repository Address

git remove git_repository_url_address

Display Git Local Repository Configuration

git config --list

Set Git Username in the Global Configuration

git config --global user.name "user_name"

Set Git Email in the Global Configuration

git config --global user.email "email_address"

Leave a Reply