FOR TALENT
Blog Explore the trends. Codebrew Stay up to date. Interview Questions Get prepared. Coder Glossary Learn the concepts. Portfolio Showcase your projects. University Preferences Make the right choice. Roadmap Move forward step by step. Cheat Sheets Look up the shortcuts. Free Software Tools Get a hand. Podcast Listen on the go. Salaries Learn what the market pays. AI Tools Explore AI.FOR COMPANIES
Blog HR trends. Codebrew Stay in the loop. HR Webinars Hear from the experts. Case Studies Get inspired. E-book Download the guides. HR Calculation Tools Calculate with ease.
Git cheat sheet that serves as a practical Git command reference for branching, merging, staging, and committing.
// Initialize a Repository
// Clone a Repository
git clone <repo-url>
// Shallow Clone
git clone --depth 1 <repo-url>
// Check Status
git status
// Add Files
git add <file>
// Add All Files
git add .
// Commit Changes
git commit -m "Commit message"
// Common Status Codes
// Create Branch
git branch <branch-name>
// Switch Branch
git switch <branch-name>
// Merge Branch
git merge <branch-name>
// Squash Merge
git merge --squash <branch-name>
// Branch Tips
// Interactive Rebase
git rebase -i <base-commit>
// Cherry-pick Commit
git cherry-pick <commit>
// Rebase Tips
// Start Bisect
git bisect start
// Mark Good/Bad
git bisect good <commit>
git bisect bad <commit>
// Reset Bisect
git bisect reset
// Add Submodule
git submodule add <repo-url> <path>
// Update Submodules
git submodule update --init --recursive
// Git LFS
git lfs track "*.psd"
git add .gitattributes
// Create Patch
git format-patch -1 <commit>
// Apply Patch
git apply <patch-file>
// Git Ignore
echo ".env" >> .gitignore
// Git Hooks
echo "echo Hello" > .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit
// Store Credentials
git config --global credential.helper cache
// SSH Key Setup
ssh-keygen -t ed25519 -C "[email protected]"
ssh-add ~/.ssh/id_ed25519
// Show Commit Log
git log --oneline --graph --decorate
// Show Differences
git diff <commit1> <commit2>
// Inspect Tips
// Amend Last Commit
git commit --amend
// Rebase Branch
git rebase <branch>
// Rewriting Tips
// Set Username & Email
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
// Set Alias
git config --global alias.co checkout
// Useful Aliases
// Common Issues
// Troubleshooting Resources
// Popular Workflows
// Best Practices
// Security Tips
// Performance Tips
Get inspired, learn, join competitions and grow in your job!
Sign up now