Note: This was originally posted on my blog at https://therobinkim.com/blog/git-add-everything-but-whitespace-changes. Any updates will appear there and not here.
Note: This was originally posted on my blog at https://therobinkim.com/blog/how-to-read-a-git-diff. Any updates will appear there and not here.
When I learned how to read a git diff/patch, I felt like my understanding of the internal mechanics of git improved…
Git was created by Linus Torvalds, who created the Linux kernel. He supposedly likes to name things after himself.
git /git/ noun (informal, British)
an unpleasant or contemptible person
Even in its own documentation, Git is called “the stupid content tracker.”
git log | subl allows you to view the Git log in Sublime Text (assuming your symlink has been established). Or you can write into a file with git log > gitlog.txt! More about these strange symbols (like >, >>, |, and <) here.
git log | subl
git log > gitlog.txt
>
>>
|
<
Here’s another blog post about setting up a dev environment. (I’m using OSX 10.10.)
GitHub recommends using the following command in your terminal to set the default editor in Git to use Sublime Text.
Note: This was originally posted on my blog at https://therobinkim.com/blog/globally-gitignore-certain-files. Any updates will appear there and not here.
.DS_Store is annoying. I configured Git to globally ignore it.
.DS_Store