github_notes

GitHub Notes

Git Setup

Auto Line Feeds

$ git config—global core.autocrlf true

This causes git to convert the newlines to the system’s standard when checking out files, and to LF newlines when committing in. Then you will need to checkout a fresh working copy, which will filter the line endings according to the autocrlf setting.

Editor Tool

$ git config—global core.editor

This changes the default editor for commit messages. I use SlickEdit for text editing, so the command “vs” works for me, but if your in OS X, you might like “mate”.

Diff Tool

$ git config—global diff.external

This will launch your favorite diff tool instead of the built in.





Edit History