Skip to content

Instantly share code, notes, and snippets.

@liuzxc
Last active November 8, 2019 15:54
Show Gist options
  • Save liuzxc/b82550d9001c4a7c11f4a8e194161c3f to your computer and use it in GitHub Desktop.
Save liuzxc/b82550d9001c4a7c11f4a8e194161c3f to your computer and use it in GitHub Desktop.
git diff mongoid field change
git diff develop --unified=0 -G "\+?field :" |grep "field" | awk '{print $1,$3,$5}'
+ :wechat_country, String
- :distinct_id, String
git diff develop --unified=0 -G "\+?field :" |grep "class" | awk '{print $6}'
User
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment