🛠️ Dev Tools

Git Cheat Sheet

Git cheat sheet - common Git commands and usage examples for developers.

How to Use

Git is the most popular distributed version control system. Here are common commands.

Basic Commands:

  • git init - Initialize repository
  • git clone [url] - Clone remote repository
  • git add [file] - Add files to staging
  • git commit -m "msg" - Commit changes
  • git push - Push to remote
  • git pull - Pull remote updates

Branch Operations:

  • git branch - List branches
  • git checkout -b [branch] - Create and switch branch
  • git merge [branch] - Merge branch
© 2026 Dev Tools Online | v1.1.0