>_ Git Commands Made Simple

Git commands at your fingertips

No need to memorize commands anymore. Find, copy, and execute Git commands with confidence. Perfect for developers of all skill levels.

One-click copySmart searchLearn by doing
Hero Image

Create New Project Repository

Initialize Git repository

git init

Add all files to staging

git add .

Check repository status

git status

Create first commit

git commit -m "first commit"

Set main branch

git branch -M main

Add remote origin (replace with your repo URL)

git remote add origin https://github.com/username/repo.git

Push to remote repository

git push -u origin main

Update Existing Repository

Check repository status

git status

Add all modified files to staging

git add .

Check repository status again

git status

Commit changes

git commit -m "first commit"

Push changes to remote repository

git push

Clone & Update Repository

Clone repository from GitHub

git clone https://github.com/username/repository-name.git

Navigate into project directory

cd repository-name

Check repository status

git status

Add all modified files to staging

git add .

Commit changes

git commit -m "your commit message"

Push changes to remote repository

git push

Manage Git Accounts

Set global Git username

git config --global user.name "YourGitHubUsername"

Set global Git email

git config --global user.email "your-email@example.com"

Check configured username

git config --global user.name

Check configured email

git config --global user.email