All posts by MXWest

poof

git: Find Files Across Commits

Scenario

Needed to purge files from a repo using  BFG Repo Cleaner   as per Advance Git/ Remove Sensitive Data (at gthub.com).  Need to know that they’re there.  Need to know that they’re gone.

Git Version

git version 1.8.5.2 (Apple Git-48)

Finding File(s)

I’m using the –name-status option in all of these examples because I want to. It provides that status of the file(s) in each commit. Without –name-status, we get only the commits, not the specific file information.

Find a single file with its path. Path is relative to current directory. This can be a little odd if the file has been deleted from the current branch you’re on, since the file won’t be in your working tree, but git still wants the relative path. Maybe it just seems odd to me *shrug*.

git log --follow --name-status -- some/file/path/fileYouWant.ext

Find  a single file, but we don’t know the path. We can glob it!

git log --follow --name-status -- **/fileYouWant.ext

Find all files ending in some extension. Let’s say I want to find all js files in my repo.

git log --follow --name-status -- **/*.js

If nothing else, this will likely help future me!

OS X Mavericks VirtualBox 4.30 Kernel Extension Not Loaded

More fun with VirtualBox and OS X Mavericks. The message is quite clear, kernel extension not loaded.

Luckily, Jason Arneil worked through the problem and his solution worked for me: http://jarneil.wordpress.com/2013/10/24/vritualbox-4-30-on-os-x-10-9-mavericks/

Basically some leftover stuff from some VirtualBox 4.2.x installations had to be removed.

YMMV, good luck!

OS X Mavericks: VirtualBox will not start with Bridged Adapter

Update 16 Oct 2013: VirtualBox 4.3 provides a fix. I’ve tried it out, and it does work although we get some warnings about unknown kernel extensions. See this comment: https://www.virtualbox.org/ticket/8940#comment:10

I’ve left the trail of progress here in case you can’t upgrade, or just don’t want to …

Update 8 Oct 2013:  Upgrading to OS X Mavericks GM, ran into some more problems, so I’v been issuing:sudo /Library/StartupItems/VirtualBox/VirtualBox  restartto fix it, see also this VirtualBox ticket : https://www.virtualbox.org/ticket/8940.

Original Post 2 Oct 2013: Just a quick note on OS X Mavericks, I’m using Developer Preview 8, and the fix provided by theengguy worked for me: http://theengguy.blogspot.com/2013/08/virtualbox-and-bridged-network-on-os-x.html

The symptom is that, upon startup, bridged network guest (in my case, both Ubuntu 12.04 and 13.04) throw an error (which I forgot exactly what now, but something to do with the network adapter). It’ll run just fine in NAT mode.

Any way, thanks thengguy, solution worked perfectly!

Macbook OSX 2012-12-17 Update Breaks VirtualBox 4.2.4 Ubuntu 12.04 VM

As soon as I updated my MacBook Pro Retina 15″ to the 2012 December 17 update http://www.macworld.com/article/2020833/apple-releases-wi-fi-efi-updates-for-2012-macs.html, my Ubuntu 12.04 VM running on VirtualBox 4.2.4 croaked.

Workaround was simple, just disable 3D acceleration on the Display Settings tab.

Figured someone else might hit the same snag!