<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Git on mikeda.me</title><link>https://mikeda.me/tags/git/</link><description>Recent content in Git on mikeda.me</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 05 Mar 2019 19:18:20 +0000</lastBuildDate><atom:link href="https://mikeda.me/tags/git/index.xml" rel="self" type="application/rss+xml"/><item><title>"git trash"</title><link>https://mikeda.me/git-trash/</link><pubDate>Tue, 05 Mar 2019 19:18:20 +0000</pubDate><guid>https://mikeda.me/git-trash/</guid><description>&lt;p>I often end up doing test bumps of dependencies that leave my repo
with a ton of trash changes that I just want to be able to undo easily
and reset my repo including any new or deleted files and directories,
so I added this to my .gitconfig :&lt;/p>
&lt;pre tabindex="0">&lt;code>[alias]
 trash = !git stash &amp;amp;&amp;amp; git clean -fd
&lt;/code>&lt;/pre>&lt;p>This lets me run git trash to quickly stash all my unstaged changes
&lt;em>and&lt;/em> delete all my untracked files at once, which I couldn&amp;rsquo;t find any
other solution for.&lt;/p></description></item></channel></rss>