Skip to content

Instantly share code, notes, and snippets.

@mrmurphy
Last active August 29, 2015 14:15
Show Gist options
  • Save mrmurphy/eafbc734449809e16ea6 to your computer and use it in GitHub Desktop.
Save mrmurphy/eafbc734449809e16ea6 to your computer and use it in GitHub Desktop.
Notes to self

Git Fu

Search git history by string

git log -p -S<string here> //git log -p (display diffs as patches) -S 'filter by string' 

Checkout a file from history as a different name:

git show <revId>:<relativePathToOldName> > <newName>

React

When using omniscient, use reference cursors:

https://github.com/omniscientjs/immstruct#references

And this mixin:

https://github.com/omniscientjs/omniscient-mixins/blob/master/mixins/forceUpdateOn.js

when using data from a cursor that's not passed through props.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment