git cherry-pick "Commit ID"
โ Copies a specific commit from another branch to the current branch
- Conflicts occur when two branches change the same part of a file and Git cannot automatically merge them.
- Git marks the conflicting areas in the file, and you must manually resolve them.
- After fixing, mark as resolved and commit:
git add "File" git commit # Git Commands
- A hotfix is an urgent fix applied directly to production to resolve a critical bug.
- Workflow:
git checkout main git checkout -b hotfix-branch # make the fix git commit -m "Fix: urgent issue" git checkout main git merge hotfix-branch git push origin main