Git Commands Quick Reference

1. Create From existing dataWhen starting a new project locally: From an existing repositoryWhen collaborating on an existing project: 2. Show 3. Revert Difference between git reset –hard and git revert HEAD: git reset –hard permanently discards changes (use with caution). git revert HEAD safely undoes a commit by adding a new one (preferred in […]