xxxxxxxxxx
git show YOURHASH --no-color -- file1.txt file2.txt dir3 dir4 | git apply -3 --index -
xxxxxxxxxx
Get the commit
git cherry-pick -n <commit>
Unstage everything
git reset HEAD
Stage the modifications you want to keep
git add <path>
Make the work tree match the index
# (do this from the top level of the repo)
git checkout .
xxxxxxxxxx
add_filter('after_setup_theme', 'remove_redundant_shortlink');
function remove_redundant_shortlink() {
remove_action('wp_head', 'wp_shortlink_wp_head', 10);
remove_action( 'template_redirect', 'wp_shortlink_header', 11);
}