<p>Today's post is half a quick note, half public shaming. In other words, it is a reminder to be very careful with OAuth tokens and passwords.</p>
<p>As part of moving to emacs, I starting using the incredibly useful <aclass="reference external"href="https://github.com/defunkt/gist.el">gh.el</a>.
When you first use it, the extension saves either your password or an OAuth token in your .gitconfig file.
This is cool and convenient, unless you <aclass="reference external"href="https://github.com/balkian/dotfiles">happen to be publishing your .gitconfig file in a public repo</a>.</p>
<p>So, how can you still share your gitconfig without sharing your password/token with the rest of the world?
Since Git 1.7.0, you can <aclass="reference external"href="http://stackoverflow.com/questions/1557183/is-it-possible-to-include-a-file-in-your-gitconfig">include other files in your gitconfig</a>.</p>
<spanclass="coolicon"><spanclass="fa fa-stack"><iclass="fa fa-square-o fa fa-stack-2x"></i><iclass="fa fa-android"></i></span><spanclass="explanation">Android dev</span></span>
<spanclass="coolicon"><spanclass="fa fa-stack"><iclass="fa fa-square-o fa fa-stack-2x"></i><iclass="fa fa-github-alt"></i></span><spanclass="explanation">GitHub user</span></span>
<spanclass="coolicon"><spanclass="fa fa-stack"><iclass="fa fa-square-o fa fa-stack-2x"></i><iclass="fa fa-stack-exchange"></i></span><spanclass="explanation">StackExchange fan</span></span>
<spanclass="coolicon"><spanclass="fa fa-stack"><iclass="fa fa-square-o fa fa-stack-2x"></i><iclass="fa fa-music"></i></span><spanclass="explanation">Music lover</span></span>
<spanclass="coolicon"><spanclass="fa fa-stack"><iclass="fa fa-square-o fa fa-stack-2x"></i><iclass="fa fa-film"></i></span><spanclass="explanation">Movie fan</span></span>
<spanclass="coolicon"><spanclass="fa fa-stack"><iclass="fa fa-square-o fa fa-stack-2x"></i><iclass="fa fa-comments"></i></span><spanclass="explanation">Always on IM</span></span>
<spanclass="coolicon"><spanclass="fa fa-stack"><iclass="fa fa-square-o fa fa-stack-2x"></i><iclass="fa fa-laptop"></i></span><spanclass="explanation">Always on a PC</span></span>
<spanclass="coolicon"><spanclass="fa fa-stack"><iclass="fa fa-square-o fa fa-stack-2x"></i><iclass="fa fa-pencil"></i></span><spanclass="explanation">Occassional writter</span></span>
<spanclass="coolicon"><spanclass="fa fa-stack"><iclass="fa fa-square-o fa fa-stack-2x"></i><iclass="fa fa-moon-o"></i></span><spanclass="explanation">Night owl</span></span>
<spanclass="coolicon"><spanclass="fa fa-stack"><iclass="fa fa-square-o fa fa-stack-2x"></i><iclass="fa fa-terminal"></i></span><spanclass="explanation">CLI user</span></span>
<spanclass="coolicon"><spanclass="fa fa-stack"><iclass="fa fa-square-o fa fa-stack-2x"></i><iclass="fa fa-flag"></i></span><spanclass="explanation">Linguist wannabe</span></span>
<spanclass="coolicon"><spanclass="fa fa-stack"><iclass="fa fa-square-o fa fa-stack-2x"></i><iclass="fa fa-code"></i></span><spanclass="explanation">Love to code</span></span>
<spanclass="coolicon"><spanclass="fa fa-stack"><iclass="fa fa-square-o fa fa-stack-2x"></i><iclass="fa fa-book"></i></span><spanclass="explanation">Keen reader</span></span>
<spanclass="coolicon"><spanclass="fa fa-stack"><iclass="fa fa-square-o fa fa-stack-2x"></i><iclass="fa fa-quote-right"></i></span><spanclass="explanation">Quotes on demand</span></span>