Bureaucrats, confirmed, Administrators
4,558
edits
No edit summary |
(Adds diff example) |
||
Line 27: | Line 27: | ||
<source lang="bash"> | <source lang="bash"> | ||
git diff -U0 --color myfile | sed -r "s/^([^-+ ]*)[-+ ]/\\1/" | git diff -U0 --color myfile | sed -r "s/^([^-+ ]*)[-+ ]/\\1/" | ||
</source> | |||
== What is this miscellaneous file, and how does it compare to what's in my repo? == | |||
Say you've got a config file lying around (untracked) in your local working tree. It's not in your current project branch, but you know it's an important file. How does it compare to what's in the *freephile* remote, *es128* branch version of the file? | |||
<source lang="bash"> | |||
git diff freephile/es128:config/core/MezaLocalExtensions.yml config/core/MezaLocalExtensions.yml | |||
</source> | </source> | ||