How To Remove A File From The git Staging Pre-Commit List

Author: , May 31st, 2019

Quickref: How to Remove a file from the staging area

The Story Recently, I accidentally added some files to git’s pre-commit phase, i.e.:

For example, here is how to handle the above situation:

To better understand, here are the phases/states/stages that git uses: Untracked – when a file is first created, git […]

How To Remove a Package Without the Dependencies (yum/rpm)

Author: , January 9th, 2018

To remove a specific package without its dependencies use rpm:

As always, YMMV!

How To Remove 802.1X Profiles in MacOSX Lion

Author: , August 22nd, 2013

In Terminal:

Then reboot. YMMV… This is why I am so upset with Apple these days – they constantly “dumb-down” MacOSX, removing features to “protect” the innocent public from harming themselves with the click of a mouse. Perfectly reasonable advanced features that existed in 10.6.8 are no-where to be found in 10.7 Lion (bad) […]

How To Delete a Branch from a Remote Repo in GIT

Author: , November 21st, 2012

Do it locally:

Deleted branch yourBranchName (was 340c10d). Do it remotely, and please note the : below! (replace origin with your repo, if different)

To git.yourServer.com:/repos/yourProject.git – [deleted] yourBranchName

How To Fully Destroy jQuery UI Dialog Boxes

Author: , July 11th, 2011

I was having issues with jQuery UI dialogs being hidden and not fully removed. Had same issues with both native dialog and the dialogwrapper plugin. The following code would hide, but not fully remove the div, for whatever reason:

So this is what I used instead:

!! UPDATE: After being coached by the […]

How To Remove An HTML Element By ID Using jQuery

Author: , April 12th, 2011

To remove the element with id equal to removeme: jQuery(“#removeme”).remove(); To remove the element with id equal to removeme only if it is empty: jQuery(“#removeme:empty”).remove(); To remove all empty DIVs: jQuery(“div:empty”).remove(); If it’s not empty, but has whitespace: if(jQuery.trim(jQuery(“#removeme”).text()) == “”) { jQuery(“#removeme”).remove(); } Original Post: http://stackoverflow.com/questions/527246/use-jquery-to-remove-a-div-with-no-children