Common Git Commands Cheat Sheet 📝

Intermediate

Here's a quick reference for essential commands:

git clone <repo>           # Clone a repository
git status                 # Check repository status
git add <file>             # Stage file(s)
git commit -m "msg"        # Commit with message
git push origin <branch>   # Push commits
git pull origin <branch>   # Pull updates
git branch                 # List branches
git checkout <branch>      # Switch branch
git merge <branch>         # Merge branch
git stash                  # Stash changes
git rebase <branch>        # Rebase current branch
git tag <tagname>          # Create tag

Using this cheat sheet can enhance your efficiency in day-to-day Git operations.