Posts

Showing posts with the label git

Checkout specific folder in git

git checkout -- path/to/folder

GIT : Praise or Blame

Git has a very useful blame feature which allows you to check which developer was responsible for changing a particular piece of code: $ git blame -L5,10 app.css

GIT : Show Changed Words Instead of Whole Lines

This works with git diff and git show git diff --word-diff Or git diff --color --word-diff myFile.js