Skip to content

Git

A quick overview of how I use Git for version control, collaboration, and project management.


Basics

  • git init
  • git add, git commit
  • .gitignore
  • Viewing history: git log, git diff

Everyday Workflow

  • Cloning repos
  • Branching: git checkout -b feature-name
  • Merging and rebasing
  • Resolving conflicts
  • Pull/push with remotes

Useful Commands

git status
git log --oneline --graph --all
git stash
git reset --soft HEAD~1

Pro Git Book