On Mon, Jun 6, 2011 at 6:46 AM, Tim Sutton <span dir="ltr">&lt;<a href="mailto:lists@linfiniti.com">lists@linfiniti.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hi All<br>
<br>
Ok I have finished the cleanup of tags and branches in the GitHub main<br>
repository for QGIS. If you have a clone, you may want to perform a<br>
similar cleanup to your local repo. I strongly suggest making a backup<br>
before doing this and checking that the script below does not trash<br>
any of your valuable work. That said if you want a hint about how to<br>
remove the pruned branches and tags from your github or other clone<br>
you can use a variation of this bash script:<br>
</blockquote></div><br><div>If you shoot yourself in the foot with git (i.e. deleting a branch or resetting a commit), git still has the &quot;deleted&quot; content. Content that has been committed but then disconnected from a branch isn&#39;t destroyed unless an aggressive garbage collection takes place or it is really, really old (like a month or more).  You can use tools like `git reflog` and `git fsck` to find the SHAs of &quot;lost&quot; content and then unshoot yourself in the foot using `git checkout`, `git cherry-pick`, `git branch`, etc.</div>

<div><br></div><div>Of course, mounting a scratch monkey by copying the repo is more efficient in terms of time than digging around in the reflog.  But in case you ever find yourself with a toe missing...</div><div><br></div>

<div><br></div><div>-Charlie</div>